The main objective of the game is to feed the snake with as much food as possible. The snake moves continuously,with the user controlling the direction of the snake's head (up, down, left, or right) with the help of pushbuttons onthe S3E FPGA kit. Furthermore, the snake
s length grows a block with every block of food eaten. The trick is togrow as long as possible until it reaches the “You Won” window without bumping into the snake
s body or touchingthe walls. This becomes tricky when a really long snake has to move in the limited space provided by VGA display.Each time the snake eats a piece of food, its body grows longer. The player cannot stop the snake from moving whilethe game is in progress. The display component will be handled by using a VGA interface. There are
levels in thegame and in each level the snake increases by 5X where X is level number and also the speed at which the snakemoves is increased.A brief description of project is as follows. The snake body has been generated by using a stack which stores thelocations and when the snake is moving around the body parts behind the snake keep copying the locations of thehead. In this way we can create a snake which can bend while turning. The food for the snake is generated by using arandom generator.
1) What is the goal of the game?
The goal is to eat food while avoiding losing the snake's lives. The higher the level you are playing on, the more thespeed of the game will be. Therefore the Higher the level makes the game play faster. We are totally using 3 levelsfor this game. The speed at which the snake moves in level 3 will comparably faster to that of level 1.
2) What kills my snake? When is the game over?
The snake dies if its head collides with its body or with the walls. So, the snake shouldn
t run in to the walls or touchitself.
3) What happens when my snake eats food?
Each time the snake eats food, the snake grows one unit longer in a level. Every time a block of food is eaten by thesnake, a new food will appear on the screen.
4) Controls for the game?