Over the last few posts we've looked at PyGame installation, events, event handling, colour definition, initialisation and drawing.
Now it's time to put all the ingredients together in the form of an complete app skeleton.
Here's the listing:
1 |
# PyGame Skeleton |
Take this basic structure and add your own enhancements. Maybe additional event handling or drawing different shapes.
I hope you've enjoyed this series. Happy coding.
A post from my Learn Python on the Raspberry Pi tutorial.