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...) |
|||
Line 19: | Line 19: | ||
** If the health meter hits 0, then put up a message that says "Game Over" | ** If the health meter hits 0, then put up a message that says "Game Over" | ||
* Falling objects | * Falling objects | ||
− | ** Place several objects at the top of the screen | + | ** Place several objects at the top of the screen (some should be good objects and some should be bad objects) |
** The objects should fall (move) automatically to the bottom | ** The objects should fall (move) automatically to the bottom | ||
** If an object hits the bottom, then move it back to the top | ** If an object hits the bottom, then move it back to the top | ||
Line 26: | Line 26: | ||
** To stay alive, you must catch good items that are falling down the screen | ** 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 | ** Every time you catch an item, your health meter should increase again by a small amount | ||
+ | * Bad items | ||
+ | ** Add bad items that drop from the sky and decrease your health if you catch them | ||
* Winning the game | * Winning the game | ||
** In the corner of the screen, you should have a counter label that counts down or up. | ** In the corner of the screen, you should have a counter label that counts down or up. | ||
Line 31: | Line 33: | ||
'''Advanced Features:''' | '''Advanced Features:''' | ||
− | |||
− | |||
* Pause button | * Pause button | ||
** Add a button that stops the timer and puts a "Paused" message on the screen | ** Add a button that stops the timer and puts a "Paused" message on the screen | ||
* Difficulty levels | * Difficulty levels | ||
** Add different levels of difficulty to your game | ** Add different levels of difficulty to your game |
Latest revision as of 12:51, 9 January 2009
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 (some should be good objects and some should be bad objects)
- 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
- Bad items
- Add bad items that drop from the sky and decrease your health if you catch them
- 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:
- 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