Whac-A-Mole game
From WLCS
Objective:
- Design and implement a game where a player must whack moles that randomly pop up
Competencies:
- 053 Write a program that uses variables and constants.
- 057 Write a program that uses conditional structures.
- 058 Write a program that uses looping structures.
- 061 Code a program to display graphics.
- 063 Code a program to animate objects.
- and more...
Resources:
Requirements:
- A background that has at least 9 different holes/slot
- The player sprite will be a floating hammer that follows the mouse
- Optional: When you click the mouse, you can animate it hammering down
- You will have 9 "moles" on the screen (they can be different if you want)
- Moles should appear and disappear at random times repeatedly
- You will have 2 different variables: time and points
- Time should be reset to 10 at the beginning of the game
- Points should be reset to 0 at the beginning of the game
- When a mole is visible, the player should try to click on the mole
- If the mouse is clicked AND the hammer touches the mole, then you should receive a point
- The time should countdown and decrease by 1 every second
- When the timer hits 0, then stop the game
Grading Rubric:
- Images for background, hammer, and moles - 2 pts
- Hammer sprite that follows the mouse - 2 pts
- Moles that appear and disappear randomly - 2 pts
- Points increase when moles are hit - 2 pts
- Timer that counts down - 2 pts