Moving a dot
The game loop every game runs: clear, draw, show, move. Bounce a ship off the walls and measure your frame rate.
Open it in the simulatorBuild space games in MicroPython on a Pico with an OLED: drawing, a game loop, buttons, a score, random asteroids, sound, and a space snake.
0 of 7 done
7 lessons in 4 chapters, about 5 hours on a simulated Raspberry Pi Pico. Free, in your browser, every step checked by the simulator.
The game loop every game runs: clear, draw, show, move. Bounce a ship off the walls and measure your frame rate.
Open it in the simulatorCatch stars with box collisions, keep score, draw it with % formatting, and end the game after three misses.
Open it in the simulatorMake a piezo sing with PWM: a start jingle, a crash sound, the lowest note the Pico can make, and a tune stored as a list.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Draw pixels, boxes and text on a 128 by 64 OLED, then make a ship move with a game loop.
Light pixels, lines, boxes and text on a 128 by 64 OLED, and learn why nothing shows until show().
0 of 5 steps
The game loop every game runs: clear, draw, show, move. Bounce a ship off the walls and measure your frame rate.
0 of 5 steps
Steer with two buttons, catch stars with box collisions, and keep score.
Steer the ship with two buttons: pull-ups, why pressed reads 0, held versus tapped, and the bounce you never see.
0 of 4 steps
Catch stars with box collisions, keep score, draw it with % formatting, and end the game after three misses.
0 of 4 steps
A random asteroid field with lives and levels, and sound from a piezo.
An asteroid field from random numbers and a list: spawn, move, clear away, crash. Then lives and levels.
0 of 4 steps
Make a piezo sing with PWM: a start jingle, a crash sound, the lowest note the Pico can make, and a tune stored as a list.
0 of 4 steps
Everything at once: a space snake with steering, food, growth, sound and warp edges.
Build space snake: a grid, a list of cells for a body, two-button steering, food, growth, sound, speed-ups and warp edges.
0 of 6 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.
A Pico, an OLED display (128x64), a pushbutton and a piezo speaker: play games you build 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 MicroPython games on a tiny screen 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 Raspberry Pi Pico 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: Moving a dot, A score and Sound.
With "Drawing on an OLED", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.