The code from Tutorial 12 is modified to allow five bouncing balls. There are multiple ways of accomplishing this. Parallel arrays are used to control the 5 balls.
Code Download
FPAppT13.zip
Free Pascal
www.freepascal.org
Free Pascal Wiki
wiki.freepascal.org
Lazarus IDE
www.lazarus-ide.org
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus