Udacity Front-End Web Developer Nanodegree Assignment
The objective of the game is to make it to the water.
- The game runs on the arrow keys, no other key inputs will be accepted. Make it to the water and win!
- Add score keeper
- Add increased difficulty as score increases
- Add lives
- The resources.js file loads all images being used and keeps them in the cash for easy access.
- The app.js file handles all aspects of player and enemies in the game.
- The engine.js file calls for everything to be rendered and causes the app to refresh as needed to show enemy motion and player location changes.
- Enemy.prototype.update: This function handles not only enemy location but it handles impact with player.
- Player.prototype.handleInput: This function handles inputs and resets player when needed. Great place to add additional behaviors.
- This game can be ran on your favorite browser. First download the entire file then right click on index.html and select "Open with", followed by your choice of browser.