|
NOTE 1
The first point is automatically collected because the player character and the apple are initially rendered at the same grid position.
NOTE 2
Sometimes, after capturing an apple, the new apple may appear at the same LED as the player character. When this happens, the green and red LEDs overlap and look yellow. If this occurs, just move the character in any direction to separate them, and the game continues normally.
CIRCUIT DESCRIPTION
A fun little game built purely using digital logic.
This project is a 4×4 RGB LED grid–based mini game that I built just for fun and learning. The grid works like a tiny game arena where one green LED acts as the player character and one red LED acts as an apple (or target). Using four push buttons (Up, Down, Left, Right), the player moves the green LED around the grid to catch the apple. Every time the apple is captured, the score increases and the apple pops up at a new random location. The game runs continuously and also includes wrap-around movement, so when the character goes off one edge, it reappears on the opposite side.
ENJOY :)
|