This JavaScript web app is inspired by the classic arcade game, Frogger.
The basic game engine and art assets were supplied by Udacity, and I've built the game as part of the Front-End Web Developer Nanodegree.
Get to the water without being chomped by the bugs!
You have two options for playing the game:
-
Recommended: Play the online version right now!
-
To play offline or edit/debug the game, clone this repository (or download and unzip it) and then open
index.html
in your browser or load it in a locally-running web server.
-
Move your character with the arrow keys.
-
If a bug catches you, you'll be sent back to the start.
-
If you reach the water, you've succeeded! You'll be reset to the start.
-
Bonus items will appear - grab them before a bug does!
-
Blue gem - bonus points
-
Green gem - super bonus points!
-
Orange gem - hyper bonus points!!
-
Heart - an extra life!!!
-
Star - clear away the bugs
-
-
Fork and/or clone the repository.
-
Run
npm install
to set up development dependencies. -
Use Grunt tasks:
-
grunt
will lint JavaScript code and identify errors and potential problems, and beautify the HTML, CSS and JavaScript files. Or usegrunt jshint
to lint andgrunt jsbeautifier
to beautify. -
grunt watch
will monitor files for changes and run the linter and/or beautifier.
-
-
Submit a pull request if you have a bug fix, or raise an issue to discuss potential improvements or changes to gameplay.
Note that the base code for this project is available from this Udacity GitHub repository.