Learn the building blocks of game development with Pygame. You will initialize a game window, draw colored shapes, control frame rate for smooth animation, and move a player rectangle with arrow keys. You will also learn the 2D coordinate system, where (0,0) is the top-left corner and Y increases as you move down the screen.
Overview
Syllabus
Building a Pygame Foundation
- Opening Your First Game Window
- Keeping the Window Alive
- Painting Your Canvas at Sixty
Drawing Shapes in Pygame
- Your First Shape on Screen
- A Second Shape Appears
- Completing the Scene with a Circle
Animating Objects with Rects
- A Box That Remembers Its Place
- Bringing the Red Block to Life
- Making the Fall Never End
Adding Player Movement
- Give the Player Its Own Rect
- Taking the Arrow Keys Control
- Keeping the Player On Screen