Difference between revisions of "Item collection game"
From WLCS
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Objective:''' | '''Objective:''' | ||
* You will create a game that allows a player to travel around the screen | * You will create a game that allows a player to travel around the screen | ||
− | * The player will be able to move around | + | * The player will be able to move around |
+ | * Try to make the player face the direction that its moving | ||
* The player will be able to collect items | * The player will be able to collect items | ||
− | * The player must also avoid certain | + | * The player must also avoid certain dangers, mines or traps |
* The player wins when all items are picked up | * The player wins when all items are picked up | ||
− | * The player loses when he/she hits a | + | * The player loses when he/she hits a danger |
'''Description:''' | '''Description:''' | ||
* You will have a single player that can move around the screen | * You will have a single player that can move around the screen | ||
+ | ** Have your sprite change costume or point in the direction that it is moving | ||
* You will have a variable that tracks the number of items collected (initialize it to 0) | * You will have a variable that tracks the number of items collected (initialize it to 0) | ||
* You will have at least 5 items on the screen | * You will have at least 5 items on the screen | ||
− | ** All items should be '''randomly | + | ** All items should be '''randomly placed''' when the game starts |
** If an item is collected (touching/collision with item), then... | ** If an item is collected (touching/collision with item), then... | ||
*** make the item disappear | *** make the item disappear | ||
Line 18: | Line 20: | ||
** If you have collected all the items, then tell the user "You win!" | ** If you have collected all the items, then tell the user "You win!" | ||
− | * You will have at least 10 " | + | * You will have at least 10 "dangers" on the screen |
− | ** 5 " | + | ** 5 "dangers" should be stationary and do not move |
− | ** 5 " | + | ** 5 "dangers" should move around the screen |
− | ** '''Randomly place''' the stationary | + | ** '''Randomly place''' the stationary dangers when the game starts |
− | ** If a | + | ** If a danger is hit, then tell the user "Game Over" and end the game |
+ | |||
+ | * You will have a time variable that starts at 10 (or another number you see fit) | ||
+ | ** When the game starts, the time variable decreases by 1 every second | ||
+ | ** If the time variable hits 0 and the item count is still less than the 5, then the player should lose ("Game Over" appears) | ||
* Sounds - play a sound when: | * Sounds - play a sound when: | ||
** you collect an item | ** you collect an item | ||
− | ** collide with a | + | ** collide with a danger |
** lose | ** lose | ||
** win | ** win | ||
'''Additional Bonus Features:''' | '''Additional Bonus Features:''' | ||
− | * Screenwrapping | + | * Items that give the player more time |
− | * Wall collisions | + | * Screenwrapping - when the hits the edge of the screen, it appears on the other side |
+ | * Wall collisions - prevent the player from going off the screen | ||
+ | * Health bar or Hit Points | ||
* Multi-directional sprite images | * Multi-directional sprite images | ||
− | * Explosion image when player sprite collides with a | + | * Explosion image when player sprite collides with a danger |
− | |||
* Change item count label to a point collection label | * Change item count label to a point collection label | ||
* Different items (worth different values) | * Different items (worth different values) | ||
− | * Increasing difficulty levels (more | + | * Increasing difficulty levels (more dangers) |
'''Grading Rubric:''' | '''Grading Rubric:''' | ||
* 2 pts - player can travel around the screen | * 2 pts - player can travel around the screen | ||
* 2 pts - item count label | * 2 pts - item count label | ||
− | * 2 pts - random placement of items and | + | * 2 pts - random placement of items and dangers |
* 2 pts - collision with item makes it disappear and increases count by 1 | * 2 pts - collision with item makes it disappear and increases count by 1 | ||
− | * 2 pts - collision with | + | * 2 pts - collision with danger results in a "Game Over" message |
Latest revision as of 22:06, 23 February 2015
Objective:
- You will create a game that allows a player to travel around the screen
- The player will be able to move around
- Try to make the player face the direction that its moving
- The player will be able to collect items
- The player must also avoid certain dangers, mines or traps
- The player wins when all items are picked up
- The player loses when he/she hits a danger
Description:
- You will have a single player that can move around the screen
- Have your sprite change costume or point in the direction that it is moving
- You will have a variable that tracks the number of items collected (initialize it to 0)
- You will have at least 5 items on the screen
- All items should be randomly placed when the game starts
- If an item is collected (touching/collision with item), then...
- make the item disappear
- increase your item count by 1
- If you have collected all the items, then tell the user "You win!"
- You will have at least 10 "dangers" on the screen
- 5 "dangers" should be stationary and do not move
- 5 "dangers" should move around the screen
- Randomly place the stationary dangers when the game starts
- If a danger is hit, then tell the user "Game Over" and end the game
- You will have a time variable that starts at 10 (or another number you see fit)
- When the game starts, the time variable decreases by 1 every second
- If the time variable hits 0 and the item count is still less than the 5, then the player should lose ("Game Over" appears)
- Sounds - play a sound when:
- you collect an item
- collide with a danger
- lose
- win
Additional Bonus Features:
- Items that give the player more time
- Screenwrapping - when the hits the edge of the screen, it appears on the other side
- Wall collisions - prevent the player from going off the screen
- Health bar or Hit Points
- Multi-directional sprite images
- Explosion image when player sprite collides with a danger
- Change item count label to a point collection label
- Different items (worth different values)
- Increasing difficulty levels (more dangers)
Grading Rubric:
- 2 pts - player can travel around the screen
- 2 pts - item count label
- 2 pts - random placement of items and dangers
- 2 pts - collision with item makes it disappear and increases count by 1
- 2 pts - collision with danger results in a "Game Over" message