Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

🎮 Pixel Runner

gamePlay.mp4

Pixel Runner is a retro-style endless runner game built for Arduino and other microcontroller platforms. It runs on a 16×2 LCD display and is controlled using a joystick module.

The project is developed with PlatformIO and written in C++, following a modular architecture to keep the source code clean and maintainable.


✨ Features

  • 🎮 Joystick controls
  • 🏃 Endless runner gameplay
  • ⚡ Multiple difficulty levels
  • 📈 Score tracking
  • 🎨 Custom LCD characters
  • 🧩 Modular code structure

🛠 Hardware

  • Arduino Uno R3
  • 16×2 LCD (HD44780 compatible)
  • Joystick Module (KY-023 or compatible)
  • Jumper wires

🔌 Wiring

LCD 16×2

LCD PinArduino Pin
RSD7
ED6
D4D5
D5D4
D6D3
D7D2
VSSGND
VDD5V
RWGND
VO10k Potentiometer (Contrast)
A (LED+)5V (through a 220Ω resistor)
K (LED−)GND

Joystick Module

Joystick PinArduino Pin
VRxA0
VRyA1
VCC5V
GNDGND

Note: If your hardware connections are different, update the pin definitions in the source code accordingly.


📁 Project Structure

include/
├── characters.h
├── constants.h
├── enum.h
├── functions.h
├── structures.h
└── variables.h
src/
├── characters.cpp
├── functions.cpp
├── main.cpp
└── variables.cpp

🚀 Getting Started

  1. Clone the repository:
git clone https://github.com/plutron/pixel-runner-Arduino.git
  1. Open the project in PlatformIO.
  2. Connect your Arduino Uno.
  3. Build and upload the project.

🎮 How to Play

  • Select the game speed.
  • Move the joystick to control the player.
  • Avoid incoming obstacles.
  • Survive as long as possible and achieve the highest score.

🤝 Contributing

Contributions, suggestions, and bug reports are welcome. Feel free to open an issue or submit a pull request.


📄 License

This project is licensed under the MIT License.


Made with ❤️ using Arduino, PlatformIO, and C++.

About

Pixel Runner is a retro-style endless runner designed for 16×2 LCD displays and microcontroller-based systems

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages