Difference between revisions of "Item collection game"

From WLCS
Line 6: Line 6:
 
'''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
* You will have a label that tracks the number of items (initialize it to 0)
+
* You will have a variable that tracks the number of items (initialize it to 0)
  
 
* You will have at least 5 items on the screen
 
* You will have at least 5 items on the screen
Line 13: Line 13:
 
*** make the item disappear
 
*** make the item disappear
 
*** increase your item count by 1
 
*** increase your item count by 1
*** change the coordinates (Left, Top) of the item to be off the screen (-1000, -1000)
+
** If you have collected all the items, then tell the user "You win!"
  
 
* You will have at least 10 "mines" on the screen
 
* You will have at least 10 "mines" on the screen

Revision as of 10:32, 6 October 2011

Objective:

  • You will create a game that allows a player to travel around the screen
  • The player will be able to collect items
  • The player must also avoid certain "mines" or "traps"

Description:

  • You will have a single player that can move around the screen
  • You will have a variable that tracks the number of items (initialize it to 0)
  • You will have at least 5 items on the screen
    • Randomly place them when the form is loaded
    • If an item is collected (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 "mines" on the screen
    • Randomly place them when the form is loaded
    • If a mine is hit, then tell the user "Game Over" and end the game

Additional Bonus Features:

  • Screenwrapping
  • Wall collisions
  • Multi-directional sprite images
  • Explosion image when player sprite collides with a mine
  • Countdown timer
  • Change item count label to a point collection label
  • Different items (worth different values)
  • Increasing difficulty levels (more mines)

Grading Rubric:

  • 2 pts - player can travel around the screen
  • 2 pts - item count label
  • 2 pts - random placement of items and mines
  • 2 pts - collision with item makes it disappear and increases count by 1
  • 2 pts - collision with mine results in a "Game Over" message