Retro Snake
Retro Snake is a hardware implementation of the game Snake
It is one of the first games available on mobile phones. For this project, we used ATMega32 as the Microcontroller.
The game is displayed on a grid(16×16) built with 4 8×8 bi-color LED matrices. There are 2 digital IR sensors to control the snake. In the game, we can move the snake head right or left by using these sensors. Whenever the snake eats a food, one point is added to the score and the length of the snake increases.
There are two modes in the game:
- Classic Mode
- Obstacle Mode
In classic mode, the game continues until the head of the snake collides with its own body. In obstacle mode, there are 4 levels. When the snake eats two foods, the level increases except for the last level. The game ends when the snake’s head collides with its body or a obstacle. The score and the high score is displayed on a 16×2 I2C LCD display. We have used a buzzer to indicate that the snake has eaten a food.
Github: Retro Snake