Start from zero: learn Python inside a game window, then sprites, game rules, scrolling worlds and sound, one feature per lesson. Each game runs next to your code.
Overview
Syllabus
- Learn Pygame: Make Games in Python — Your first Python, inside a game: variables, if, loops, functions and lists, ending with a night sky of stars you place.
- Learn Pygame: Make Games in Python — The loop and the clock, keys and the mouse, rects and collisions, score, lives and restart.
- Learn Pygame: Make Games in Python — Images, turning and scaling them, classes for game objects, sprite groups and animation, in a space shooter.
- Learn Pygame: Make Games in Python — Menus and game over, a HUD, timers and waves, difficulty and a high score, in an endless runner.
- Learn Pygame: Make Games in Python — Maps from text, tiles, gravity and jumping, a scrolling camera and enemies that patrol, in a platformer.
- Learn Pygame: Make Games in Python — Sound effects and music, particles, screen shake and smooth motion.
- Learn Pygame: Make Games in Python — Snake, two-player Pong, a top-down dungeon game and one game of your own.