Tower of Power is a simple game built using an AT89C52 microcontroller, two 8x8 LED matrices, and a single button. The objective is to align a continuously moving bar with a randomly spawning bar to gain points. The game features a scoring system and health bars, with animations indicating success (smiley face) or failure (sad face).
- Two 8x8 LED matrix displays
- Single-button input for timing-based gameplay
- Scoring system with increasing difficulty
- Visual feedback through animations
- Assembly language implementation for efficient control
- A bar continuously moves up and down on the right LED matrix.
- A second bar appears randomly on the left LED matrix.
- The player presses the button to align both bars.
- If aligned correctly, the player gains a point, and a smiley face appears.
- If not, the player loses a health bar, and a sad face appears.
- The game ends when all health bars are depleted.
- Microcontroller: AT89C52
- Displays: Two 8x8 LED matrices
- Input Device: Single button
- Other Components: Resistors, wires, and a development board (Prechin)
- The game logic is implemented in Assembly Language.
- The system uses MCU 8051 IDE for simulation and development.
Refer to the image below for wiring and port connections:
- Flash the provided Assembly code onto the AT89C52 microcontroller.
- Assemble the circuit as per the diagram.
- Power up the system and start playing.
- Rodulph Jake L. Cabaobao
- Mohammad Naim D. Mariga
- Edgar Jr B. Villas
This project is open-source. Feel free to modify and improve!
For any inquiries or improvements, open an issue or submit a pull request on GitHub!