Making games with Pygame
Table of Contents
- 1. Introduction
-
- 1.1. A note on coding styles
- 2. Revision: Pygame fundamentals
-
- 2.1. The basic Pygame game
- 2.2. Basic Pygame objects
- 2.3. Blitting
- 2.4. The event loop
- 2.5. Ta-da!
- 3. Kicking things off
-
- 3.1. The first lines, and loading modules
- 3.2. Resource handling functions
- 4. Game object classes
-
- 4.1. A simple ball class
-
- 4.1.1. Diversion 1: Sprites
- 4.1.2. Diversion 2: Vector physics
- 5. User-controllable objects
-
- 5.1. A simple bat class
-
- 5.1.1. Diversion 3: Pygame events
- 6. Putting it all together
-
- 6.1. Let the ball hit sides
- 6.2. Let the ball hit bats
- 6.3. The Finished product