Whac-A-Mole game

From WLCS
Revision as of 09:56, 19 October 2011 by Admin (talk | contribs) (Created page with "'''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. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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...

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