http://katespeed.com/code/arcade-game/index.html
This project was part of the Front End Web Development nanodegree course from udacity.
This game is based off the classic arcade game Frogger where the player must navigate from the bottom of the gameboard to the top without running into enemies.
- control the character using your keyboard
- enemies have varying speeds and starting points
- player has 3 hearts that decrement with enemy encounters
- collect gems to earn points
- modal box shows game stats when the game is over
- use the restart icon or replay button to start over
- The goal is to get your bug safely across the street to the water while avoiding enemy boys.
- Use the arrow keys or WASD keys on your keyboard to move your bug around the game board.
- Try to collect gems along the way to gain points!
- If your bug collides with any boys, you will reset back to starting position and lose 1 heart.
- The game ends once you either lose all hearts or reach the water and a popup will show your stats.
- You can restart the game at any time using the restart icon.
You can clone this game via Github using https://github.com/reyla/arcade-game.git
Classes.js code was based on Rodrick Bloomfield's tutorial here: https://zoom.us/recording/play/aulotDlzKFegQFIJTaTzKgWvNkVsYtlwO454vL1UPE1Cm6lOUBQCtfVurPOIAGAS
Timer code was based on Chris Neal's tutorial here: https://gwgnanodegrees.slack.com/files/UA8PXHUR3/FB0Q3CSMB/Getting_the_Memory_Game_timer_to_work
getRandomInt function from MDN webdocs https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random