December 2015
Intermediate to advanced
416 pages
7h 15m
English
CHAPTER 14
![]()
Introduction to Sprites
Our games need support for handling objects that collide. Balls bouncing off paddles, laser beams hitting aliens, or our favorite character collecting a coin. All these examples require collision detection.
The pygame library has support for sprites. A sprite is a two-dimensional image that is part of the larger graphical scene. Typically a sprite will be some kind of object in the scene that will be interacted with like a car, frog, or little plumber guy.

Originally, video game consoles had built-in hardware ...
Read now
Unlock full access