Skip to content

julianaklulo/pycon2023-interactive-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create interactive games using electronics and MicroPython

Repository with the game code examples for my presentation at PyCon US 2023.

To run it, you'll need:

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.

Game example #1: Genius

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

Game example #2: Chase the Dot

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

Game example #3: Car Crash

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.

car.crash.mp4

About

PyCon US 2023 presentation material

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages