ball game


The POOL project is illustrating how to use the standard class for elastically scattering turtles. Here we show how to extend its functionality and combine the collisions handling with the movements in the field of forces continuously affecting the turtle. Sounds seriously, but it is nothing more than a not-very-flat surface with a few holes and balls that you should put into these holes.

Use keyboard arrows to tilt the surface and steer the balls. By the way - the project shows how the keyboard events are handled.

In this project we also show the use of the render instruction that allows efficiently create algorithmic patterns over the larger screen areas.

download project