Graphic JavaScript


Back to index
Dot Game

Your browser does not support the HTML5 canvas tag.

ASSIGNMENT:

After figuring out what this demo game is capable and not capable of, add the following features:

  1. Have the player ball GLIDE to the point where a click occurs
  2. During the time that the player ball is gliding, mouse clicks are ignored, but scoring continues
  3. Have the player ball increase in size every time one hundred points are gained
  4. Have the player ball decrease in size every time ten points are lost
  5. If the radius of the player ball drops to zero have it disappear and display an end of game message
  6. The game ends and a win game message is displayed if the player reaches 1000 points