Project Description
Background
In this project you’ll design and develop a specific type of game known as endless runners. Sometimes, these games feature flying characters, like in the famous game Flappy Bird. Typically the player character remains stationary along the x-axis, but can fly up and down or jump over obstacles.
The obstacles scroll, usually from right-to-left, on the screen. So the player character must jump or fly around various objects as they move toward the player. The game ends when the player character collides with one of the scrolling obstacles or, perhaps, flies off the screen.
Source: Google Chrome Dino Game
Your Task
Before coding your endless running or flying game, create a game design document. This is a document that plans out your game based on your answers to some questions about game elements and mechanics.
You’ll then create your endless running or flying game using JavaScript. You’ll code a function for each game object you need to create or construct. You’ll also develop the game’s loop to update the canvas with each of your game objects.
You’re game should have a scoring system and player controls. You might even decide to expand your game by adding start and game over screens that players can interact with before each gameplay.
For objects that repeatedly appear on the screen as your player moves through the obstacles, you’ll create a random height system as each one is created on the canvas to make the gameplay more challenging.