Broken the application down into simpler entities that manage their own properties and functionality.
Coded app.js to build reusable and maintainable libraries for player, enemy, star and other game entities with JavaScript's object-oriented pseudo-classical pattern.
Coded engine.js to provide the game loop and resources.js to load and cache all images the game needed. Gain scores as many as you can by collecting stars on the screen. Once player collides with a bug(enemy) or fell into the water, reset the player to the original position and reset the score to zero. Record the best score so far.
- Download game files, open index.html in your browser to open the game window.
- Press enter to start game.
- Press "up", "down", "left" and "right" to move player.
- Must avoid to collide with any enemy or fall into water.
- Collect stars to score.
- Reset player's position and score after a collision or falling into water.