Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Arcade Snake game using verilog

Arcade Snake game using verilog

Ratings: (0)|Views: 5,247|Likes:
Published by hypernuclide
A code for arcade snake game in verilog on VGA
A code for arcade snake game in verilog on VGA

More info:

Published by: hypernuclide on Dec 27, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





SNAKE Game on S3E FPGA kit
[ Developed using Verilog only ]
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?
Schematic Diagram

Activity (17)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
fatih_eal liked this
Sandeep Kashyap liked this
vijaykannamalla liked this
Anindya Ghoshroy liked this
Rachel Danz liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->