- The player has to reach the water without colliding into the enemies (bugs).
- The player can move up, down, left and right without falling out of the screen.
- The enemies run on the paved block portion of the scene at various speeds.
- The game resets when the player collides into an enemy.
- When the player reaches the water the game is won. Here is the complete rubric.
To run the application clone the repository to your computer:
git clone https://github.com/strongSoda/arcade-game.git
cd arcade-game/
Then open the index html in your browser.
You can also follow this link to play it.
Use the following keys to move the player:
- Up:
up-arrow
orW
- Down:
down-arrow
orS
- Left:
left-arrow
orA
- Right:
right-arrow
orD
You have to get to the water without colliding with the bugs. You have three lives, you lose a life when you collide three times. If you lose three lives you'll lose the game. Each time you get to the water you'll score 100 points. Each time you collide you'll lose 50 points. After you score 300 points collectibles will appear. You'll win the game when you score at least 2000 points. When you lose or win the game, a play-again button will appear.
- Udacity's HTML5 Canvas