Sprites and frames
An 8x8 astronaut stored as eight bytes, a two-frame walk cycle, a mirrored turn that costs no memory, and erasing exactly what you drew.
Open it in the simulatorWrite a space platformer in C++ on an ESP32-C3 with a tiny OLED, three buttons and a piezo: game loop, sprites, input, collision, gravity and sound, one idea at a time.
0 of 7 done
7 lessons in 4 chapters, about 5 hours on a simulated ESP32-C3-DevKitM-1. Free, in your browser, every step checked by the simulator.
An 8x8 astronaut stored as eight bytes, a two-frame walk cycle, a mirrored turn that costs no memory, and erasing exactly what you drew.
Open it in the simulatorAxis-aligned boxes and four comparisons: collect crystals, stop at a boulder by undoing the move, and tune a hitbox until the game feels fair.
Open it in the simulatorA piezo, tone() and note tables: a start jingle, a rising jump and a crystal chime, played from the game loop by priority without ever freezing the game.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
A steady frame rate and sprites stored as bytes.
Read, update, draw, wait: a parallax starfield at a fixed 25 frames a second, a frame budget you can measure, and what happens when the work outgrows it.
0 of 5 steps
An 8x8 astronaut stored as eight bytes, a two-frame walk cycle, a mirrored turn that costs no memory, and erasing exactly what you drew.
0 of 5 steps
Buttons read like a game reads them, and boxes that touch.
Three buttons read once a frame into a snapshot: held for walking, pressed for jumping, and why reading once a frame also tames contact bounce.
0 of 4 steps
Axis-aligned boxes and four comparisons: collect crystals, stop at a boulder by undoing the move, and tune a hitbox until the game feels fair.
0 of 4 steps
Fixed-point gravity and sound effects that never freeze the game.
Velocity, acceleration and sixteenths of a pixel: a jump that is a true parabola, moon gravity in one constant, and landing on a ledge from above.
0 of 4 steps
A piezo, tone() and note tables: a start jingle, a rising jump and a crystal chime, played from the game loop by priority without ever freezing the game.
0 of 4 steps
Everything in one platformer, then a level of your own.
Everything in one game: three crystals on the moon, floating rocks, a crater that costs a life and a portal that opens when you have them all. Then make it yours.
0 of 5 steps
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
An ESP32-C3, an OLED display (128x64), a pushbutton and a piezo speaker: a moon platformer you build and tune yourself.
Open the kitPick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 7 lessons of Game dev on microcontrollers are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated ESP32-C3-DevKitM-1 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.
About 5 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.
Each chapter ends in a project that puts it together: Sprites and frames, Collision and Sound effects.
With "The game loop", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.