- Game may be downloaded from my GitHub repository
- Once downloaded, ensure compressed file is extracted to one folder.
- Extracted folder should contain:
- an
images
folder, containing all in game images. - a
css
folder, containing game's stylesheet. - a
js
folder, containing 3 JavaScript files that provides game functionality/interactivity. - an
index.html
file, which provides the page structure and content. - a
README.md
file, which provides instructions on how to launch and play the game.
- an
- Within game folder open
index.html
file in your web browser to load game engine
- When the game begins, your player character is at the bottom center of the game board (grass area).
- There are enemy characters (bugs) moving horizontally across the game board from left edge to right edge.
- Your objective is to reach the top (water) area of the game board with your player character, moving vertically while avoiding collisions with the enemy (bug) objects as they go horizontally across the game board.
- You win the game by navigating your player character to anyone of the 5 upper most (stone) tiles just below the water without colliding with any of the enemy (bug) objects.
- If your player character collides with any enemy (bug) object the game resets and your character is placed back at the bottom center of game board to try once more.
- You control your player character via the arrow keys on your keyboard. Left arrow moves the character one block left (horizontally) of current position. Right arrow moves the character one block right (horizontally) of current position. Up arrow moves the character one block up (vertically) from current position. Down arrow moves the character one block down (vertically) from current position.
- Once a winning condition has been met you will be presented with a message informing you of your win and giving you the option to play again.
- Upon winning, if you choose to play again, the game board with reset, moving your character back to the bottom center of the game board and allowing to try again.
You cannot click on a tile to move your character to that tile, you must use the arrow keys on your keyboard to move your character on the game board!
This repository is the starter code for all Udacity students. Therefore, we most likely will not accept pull requests.