The BBC micro:bit is the perfect plataform to develop interactive games using MicroPython. These are game examples that I developed for my presentation at PyCon US 2023.
Genius (the Brazilian name for Simon) is a game where a sequence of colors is showed to the player, that must repeat it in the correct order. For this example, the input uses 4 push buttons that represent directions. Each direction is indicated by an arrow and a corresponding pitch sound. If player inputs the sequence correctly, a new direction is added to the sequence.
In this game the player needs to catch a dot on the display, which will change the location if it's not caught in 1s. The player can use the joystick or the accelerometer to play. After 25s, the game ends and displays how many dots were caught.
In the Car Crash game there are obstacles coming in the direction of the car. The player uses the joystick to move the car and avoid crashing it. After avoiding an obstacle, the game gets faster, making it harder to play.
Source code is available at GitHub here
The recording of my presentation at PyCon US 2023 is available at YouTube here