Page 90 - Programming the Raspberry Pi Getting Started with Python
P. 90
This creates three raspberries; we could change it dynamically while the program is running by
adding new raspberries to the list (or for that matter removing some).
We now need to make just a couple other changes to deal with more than one raspberry. First of all,
in the check_for_catch function, we now need to loop over all the raspberries and ask each one
whether it has been caught (rather than just the single raspberry). Second, in the main loop, we need to
display all the raspberries by looping through them and asking each to update.
Summary
You can learn plenty more about pygame. The official website at www.pygame.org has many
resources and sample games that you can play with or modify.