Whack-a-Mole Game
From WLCS
Objectives:
- You will be able to get the mouse's X and Y coordinates
- You will be able to move objects around the screen randomly
- You will be able to manipulate the size attributes of objects
- You will be able to determine if two objects are colliding
Requirements:
- You are creating a Whack-a-Mole game that will allow the user to move the mouse around and click on "moles".
- Random moles
- You should have several moles on the screen (3 or 4)
- Every 1 second, you should randomize the location of all your moles on the screen
- Whacking
- When the user clicks the mouse down on an image, the image has been hit.
- If the image is hit, then you should increase the score counter
- Timer bar (losing)
- When the game begins, you should have a bar at the top or side of the screen that shrinks according to how much time is left.
- When the timer bar runs out, you should put a message on the screen that says "Game Over."
- Scoring (winning)
- Whenever a player hits a mole, his/her score should increase. The player will be trying to score above some number in order to win. When the player's score reaches a certain amount, they should win. You decide how high the score should be.