- Design and Buliding my own game
- Full functioning browser based game using HTML, CSS/SCSS and JavaScript
- The player need to move left or right to escape from the falling objects.
- The player has 3 chances in a game.
- Game over if player collides with the objects more than 3 times.
- Instruction
- Screen for Game
- 1 Player
- Falling objects
- 3 chances
- Game start button
- Game starts after button clicked
- Start button to start loading the game
- clicked : Start => Restart
-
Player movement - left and right addEventListener to keyboard : left/right arrows player only moves along the x-axis
-
Objects movement - random, from top to down objects only moves along the y-axis
-
Collisio n - a heart deducted if player collides with the objects, a heart will be decducted
-
Game running time: 30 sec
-
Game Over after 3 collisions/ ends if no heart left --> Game Over if 1 or more than 1 heart left --> You win!
-
If you win , "Congrats" image pop up If you lose, "Game Over" alert