Learn Pygame: Make Games in Python
A free, interactive pygame course that starts from zero. Write Python and play your games beside the editor on the real pygame-ce, with art and sound from Kenney's free packs, AI hints and a certificate per section.
1,000+ codders enrolled
218 lessons218 challenges387 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
Section 1
Python in a Game Window
Start sectionStartLearn Python by drawing in a pygame window: variables, if, loops, functions and lists, each one moving something on screen. You finish with Night Sky, stars you place and that twinkle.Your First Window
4 lessons4Numbers and Variables
5 lessons55If and Keys
5 lessons55Loops That Draw
5 lessons55Functions
4 lessons45Lists of Things
5 lessons55Night Sky
Project4 lessons4Section 2
The Game Loop
Start sectionStartWrite the game loop yourself: the clock, keys, shapes, the mouse, movement measured in seconds, Rects and collisions, score and lives. You build Gem Hunt and finish with Catch the Blocks.Move a Square
Project8 lessons85Shapes and Colors
4 lessons45The Mouse
Project5 lessons55Moving by Time
5 lessons55Catch the Blocks
Project10 lessons105Section 3
Sprites and Images
Start sectionStartLoad images, turn and scale them, write classes for game objects, group them as sprites and animate them from sprite sheets. You finish with Star Patrol, a space shooter.Loading Images
5 lessons59Turn, Flip, Scale
4 lessons49Classes for Game Objects
6 lessons613Sprites and Groups
5 lessons512Pixel-Perfect Collisions
4 lessons49Animation from Sprite Sheets
4 lessons48Star Patrol
Project8 lessons817Section 4
Game Rules
Start sectionStartMenus and game over screens, a HUD, timers and waves, difficulty and a saved high score. You finish with Sky Runner, an endless runner.Game States
5 lessons512Text and a HUD
4 lessons48Timers and Waves
5 lessons512Difficulty
4 lessons48High Score
4 lessons48Sky Runner
Project7 lessons716Section 5
Worlds
Start sectionStartBuild levels from text maps and tiles, add gravity and jumping, land on platforms, follow the player with a camera and add enemies that patrol. You finish with Moss Caves, a platformer.Maps from Text
5 lessons510Tiles
4 lessons410Gravity and Jumping
5 lessons515Platform Collisions
5 lessons510A Scrolling Camera
4 lessons410Enemies That Patrol
4 lessons410Moss Caves
Project8 lessons817Section 6
Sound and Game Feel
Start sectionStartSound effects, music, particles, screen shake, hit flashes and smooth motion, then use them all to polish Star Patrol.Sound Effects
4 lessons49Music
3 lessons35Particles
4 lessons49Screen Shake and Hit Flash
4 lessons49Smooth Motion
4 lessons49Polish Star Patrol
Project4 lessons49Section 7
Projects
Start sectionStartMake Snake, two-player Pong and Rune Keep, a top-down dungeon, then design a game of your own.Snake
Project10 lessons1020Pong for Two
Project10 lessons1020Rune Keep
Project9 lessons920Make Your Own Game
Project2 lessons24
Pygame courses
Hands-on Pygame courses, free to start in your browser.
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time. Reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn pygame with Coddy
- Your code and your game sit side by side. Press Play and the game runs on pygame-ce, the real library, compiled for the web. The keyboard and mouse reach the game,
print()and every error show in the Console, and Check grades the lesson by playing your game. - No Python needed to start. The first section teaches variables,
if, loops, functions and lists inside a game window, and ends with a night sky of stars you place. Know Python already? Start at section 2. - The game loop the way you would write it at home:
while running:,pygame.event.get(),clock.tick(60), keys and the mouse,Rectcollisions, score, lives and restart, ending with a catching game. - Sprites with real art: images, sprite sheets and animation, classes for game objects and sprite groups, in a space shooter. Then game rules in an endless runner (menus, a HUD, timers, waves and a high score), and tile maps with gravity and a scrolling camera in a platformer.
Frequently asked questions about learning pygame
What is pygame?
import pygame.Do I need to know Python to learn pygame?
if, loops, functions and lists. If you already know Python, start at section 2. For Python on its own, take the Python course.Is this the real pygame?
pip install pygame-ce and the same program runs there.What games will I make in this pygame course?
Each section ends with a game: a night sky of stars, a catching game, a space shooter, an endless runner and a platformer. The last section builds Snake, two-player Pong, a top-down dungeon game and one of your own design.
Can my games use images and sounds?
pygame.image.load and pygame.mixer. Uploading your own files is not supported yet.Is the pygame course free?
Yes. The lessons, the games, the AI hints and the certificates are free. A free account works through a few lessons a day, and Pro removes the daily limit.
Do I get a certificate for the pygame course?
Yes. Each of the 7 sections gives you a free certificate of completion when you finish it, with its own page you can share or add to LinkedIn.