Space Rangers is a two-player quick-draw reaction game built for the M5 Go IoT Kit with PlatformIO.
The game starts with an announcement telling both players to get to their spots and get ready. A random goal pattern is selected and shown on screen for a short time. Then the device cycles through random patterns while background western duel music plays. Players must press their button when the game lands on the goal pattern. The first correct press wins the round.
- M5 Go IoT Kit (Core display + speaker)
- 2 player input buttons
- PlatformIO project (
space_rangers/)
README.md
├── space_rangers
│ ├── platformio.ini
│ ├── include
│ └── src
│ ├── main.cpp
│ ├── display.cpp
│ ├── sound.cpp
│ ├── speaker.cpp
│ └── icon_renderer.cpp
- Players are prompted to walk to their positions.
- The game picks a random goal color.
- The goal color is displayed briefly so both players can memorize it.
- The screen cycles through random colors while music plays.
- Players press their button when the game lands on the goal color.
- The first player to react correctly wins the round.
- Install VS Code and the PlatformIO extension.
- Open this repository in VS Code.
- Open the
space_rangersproject folder. - Connect the M5 Go device by USB.
- Build firmware:
pio run- Upload firmware:
pio run --target upload- Start the game on the M5 Go.
- Listen for the ready prompt.
- Watch the goal color shown at the beginning.
- Wait during the random color cycling.
- Press your button as soon as the goal color appears.
- First correct player wins.
- Background music (Pixabay): https://pixabay.com/music/modern-country-western-duel-165284/
- Cowboy silhouette image (Pixabay): https://pixabay.com/photos/cowboy-horse-silhouette-man-8272978/