Animation

Most games, even the most static ones, have some level of animation. From a programmer's standpoint, animation is nothing more than displaying an object at a different place at a different time, thus simulating movement.

Pygame offers a Clock object, which manages how many frames are drawn per second. This ensures that the animation is independent of how fast the user's CPU is.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset