Dodge game
From WLCS
Objective:
- Design and implement a game where a player may side to side on the screen in order to dodge falling objects
Directions:
- Find a sprite image for your player
- Find an image for a falling object (e.g. spike, bomb, etc.)
- Side-to-side movement
- Your player must be restricted to the bottom of the screen
- Your player must only be able to move to the left and right
- The player may NOT leave the screen (i.e. there are walls on the left and right edges of the screen)
- Falling objects
- Place several objects at the top of the screen
- The objects should fall (move) automatically to the bottom
- If an object hits the bottom, then move it back to the top
- Randomize the Left property when you place objects back at the top
- Successful dodge counter
- Every time the player successfully dodges a falling object, increase a counter on the screen by one
- HINT: A player successfully dodges if the object hits the bottom and you move it back to the top
- Collisions
- If the player collides with a falling object (i.e. if the object hits the player), then there should be a game over message
- If the player successfully avoids 100 falling objects, then there should be a win message