Utility functions for posns. Accessing functions defined in other files.
A circle moves around the screen randomly. You win if you can click on it.
Brief explanation of how to stop animations and show a win screen.
Challenge Keep track of a score of how many circles have been clicked since the last time you missed a circle. This will require a posn inside another posn.
A simply silly 'game' to practice win conditions.
A square changes color as you balance between two circles.
Changing the colors in a picture, pixel by pixel.
One exercise working with color.
Review questions on posn and color.
A simple example of something you should be able to do.
In this animation you copy AimBooster.com, but simplified so you can make it with what you know from Chapter 20. A single circle is at a random place. Radius increases. Clicking on the circle gives you points inversely proportional to the radius (maybe 100/radius). When the circle is hit, it disappears and another starts growing. When the circle reaches a certain radius it disappears. After missing three circles, the game is over.