protect-play.ss
implements a "catch the balls"
game. The game generates a random number of balls (between 10 and 20) that
are moving from west to east. The goal is to keep as many balls as
possible from hitting the eastern wall by moving around the paddle. The
paddle can be moved with mouse clicks. Enjoy!
The teachpack provides four operations:
Also compare withpingp-play.ss
protect-play.ss
execute
and play:
> (go 'MyName)
> (change-speed 120)
> (go 'MyName)
> (change-wind 88)
> (go 'MyName)
protect.ss
also provides the graphical help
functions for a student implementation of the protect-the-wall game:
The use of the operation is explained in more detail in subsection X.Y.