Difference between revisions of "Stayin' Alive game"
From WLCS
(New page: '''Objectives:''' * You will be able to move objects around the screen using the keyboard * You will be able to manipulate the size attributes of objects * You will be able to calculate th...) |
(No difference)
|
Revision as of 13:54, 16 December 2008
Objectives:
- You will be able to move objects around the screen using the keyboard
- You will be able to manipulate the size attributes of objects
- You will be able to calculate the distance between objects on the screen
- You will be able to determine if two objects are colliding
Requirements:
- You are creating a Stayin' Alive game that will use a timer. The object of the game is to stay alive by catching good items.
- Find a sprite image for your player
- Find an image for a good falling object (e.g. medicine, food, etc.)
- Side-to-side movement
- You will use a timer to run over and over again
- 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)
- Decreasing health meter
- Somewhere on the screen should be a health meter
- When the game is playing, your health meter should be gradually decreasing
- If the health meter hits 0, then put up a message that says "Game Over"
- 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
- Catching items
- To stay alive, you must catch good items that are falling down the screen
- Every time you catch an item, your health meter should increase again by a small amount
- Winning the game
- In the corner of the screen, you should have a counter label that counts down or up.
- When the counter hits a certain number, you should win, and a message box that says "You win!" pops up
Advanced Features:
- Bad items
- Add bad items that drop from the sky and decrease your health if you catch them
- Pause button
- Add a button that stops the timer and puts a "Paused" message on the screen
- Difficulty levels
- Add different levels of difficulty to your game