SCRATCH PROGRAMMING QUARTER TWO

Back to index

View project at Scratch

Hammer Game

A game you will sometimes see at a fair or carnival is the hammer game. In this game a person takes a sledge hammer and hits the base of the game apparatus as hard as possible. This sends an object up a vertical pole. The harder the person hits, the farther up the object flies. This project is sort of like that game except this game cannot tell how hard you click the purple rectangle. The amount of force is determined randomly.

ASSIGNMENT:

Alter the sample project in the following ways:

  • Using the same technique, change the number of slices which the green circle is divided into from six to twelve.
  • Using the same technique, change the number of lines along the brown pole from ten to five.
  • Move the entire game over so that it is on the right side of the project screen area.
  • Put the words "Click me!" on the purple rectangle.
  • Explain in your description for this project that the game cannot tell how hard you click and that the amount of force is determined randomly. Also be able to show the part of the code where the random number is generated.