Skip to content

shantanuusharma/Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAME OF SNAKE. Copyright (C) 2015 SHANTANU SHARMA 111403042

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA


DESCRIPTION -

Snake is a little yet popular game where you have to catch as many stars as possible with your snake. This game is well-known on the nokia mobile phones, but I wrote my own version for the terminal.

The game starts of with an interactive menu which gives the user options such as to start a new game, to see the controls.The game then allows you to control the speed and the game starts then.

The game uses an array to monitor the movements of the snake and further details about the working of the programme are given in the .jpeg file.As their is only one file (snake.c) and one header file (snake.h) the second part of the .jpeg as mentioned on the college website is not drawn.I have also put some art to make the game interactive such as the welcome screen and the gameover screen.

I have included 2 video files ( snake.ogv (size - 3.1mb) , final.ogv (size - 11mb) ).

The 2 video files shows the demo of the game in progress.They shows some of the levels which gives you the idea of the different speed which uses the system clock.You can clearly see the difference in speeds as it approaches to 9.The pause button is also incorporated by pressing P/ESC in video 2(I have given the second video file an extension of .mp4 (originally .ogv))

I would also like to mention that the main challenge of this code was to move the snake which took me a while and help of my college seniors and my Data structures lab instructor for giving me the idea of using a blank ' ' character for moving the snake forward.

Releases

No releases published

Packages

No packages published