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.

http://i63.tinypic.com/2co6f0j.jpg

Information

Below are tables showing the hook-up guide for this Pacman build.

ULCD Hookup

ULCD PinPin
+5VVu
RXp27
TXp28
GNDGND
RESp30

NavSwitch Hookup

NavSwitch PinPin
GNDgnd
upp9
centerp8
leftp7
downp6
rightp5

SDFile System Hookup

SD Reader PinPin
VCCVu
DOp6
SCKp7
GNDGND
DIp5
CSp8

Speaker Setup

Import programSnake_Game

Mbed Project 4 - Classic Snake game


Please log in to post comments.