Understanding game animation

Like just about everything you see in computer games, animation mimics the real world or tries to create one in which players can feel that they are interacting with it. Drawing a game with two-dimensional sprites is fairly simple, as we saw in the previous chapter while making the snake character for our Snake game. Even with the 2D characters, we can create three-dimensional movements with proper shading and motion. Animating single objects is easier with the pygame module; we saw a bit of this in action in the previous chapter when we created a simple animation for the Snake game. In this section, we are going to animate a number of objects using the pygame module. We will make a simple program that will create ...

Get Learning Python by Building Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.