December 2015
Intermediate to advanced
416 pages
7h 15m
English
CHAPTER 9
![]()
Introduction to Animation
To begin our first animation, let’s start with the base pygame program from Chapter 6 that opens up a blank screen. Source for pygame_base_template.py can be found here:ProgramArcadeGames.com/python_examples/f.php?file=pygame_base_template.py
We will put together a program to bounce a white rectangle around a screen with a black background. Feel free to pick your own colors; just make sure the background color is different than the rectangle color!

First step: start with the base template and flip the background ...
Read now
Unlock full access