Snake Classic Game for MBED
Project Overview
For this project, we made a Snake game that uses a joystick to control movement up, down, left and right and the center button as an action button. The goal of this game is to try to last as long as you can as the snake without running into your own body/tail or a wall. At the start of the game, food is randomly spawned one at a time. As the snake eats food, another food spawns, and it grows 3 units in size. In addition to growing in size, the speed of the snake increases every three levels. This version has a title screen with an animated snake and a game over screen when the user loses. The game is also in an infinite loop so you can keep trying again if you lose! This game becomes really challenging as the snake grows larger moves faster. It is one that will make you go on tilt but also keep you hooked until you beat the high-score.
Information
Below are tables showing the hook-up guide for this Pacman build.
ULCD Hookup
ULCD Pin | Pin |
---|---|
+5V | Vu |
RX | p27 |
TX | p28 |
GND | GND |
RES | p30 |
NavSwitch Hookup
NavSwitch Pin | Pin |
---|---|
GND | gnd |
up | p9 |
center | p8 |
left | p7 |
down | p6 |
right | p5 |
SDFile System Hookup
SD Reader Pin | Pin |
---|---|
VCC | Vu |
DO | p6 |
SCK | p7 |
GND | GND |
DI | p5 |
CS | p8 |
Speaker Setup
Information
This is the speaker hookup guide.
https://developer.mbed.org/users/4180_1/notebook/using-a-speaker-for-audio-output/
Import programSnake_Game
Mbed Project 4 - Classic Snake game
Please log in to post comments.