Repository with the game code examples for my presentation at PyCon US 2023.
To run it, you'll need:
- BBC micro:bit (V1 or V2)
- Gamepad for BBC micro:bit
If you don't have a gamepad, you can use 4 push buttons, a joystick and a buzzer.
The code will work if the GPIO pins are mapped accordingly.
Genius (in Brazil) or 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.
genius.mp4
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.
chase.the.dot.mp4
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.