Snake the Game
CPE471 Final
Project
Spring 2012
Author
Oscar
Muneton
Game Description
The
game rules are as follows: the purpose of the game is to eat as many pieces of
food as you can. These pieces are
randomly scattered throughout the playing field. At the start, the user can select some
different options, such as difficulty and camera start positions. The user has
a choice between easy and hard. In the
easy difficulty mode, the snake moves slower and the size of the snake is much
larger, than the snake in hard difficulty mode.
The maximum size of the snake is set to 100 elements.
To
compile the program, run 'make mac' (for mac) or 'make linux' (for linux).
After
the program compiles, you can run the program with './final'.
Controls
Z
- Zoom in
X
- Zoom out
F
- Toggle focus on / off
C
- Change the color of the snake
A
- Turn left (with respect to snake)
D
- Turn right (with respect to snake)
P - Pause the game
R - Reset the game
Q - Quit the game
Mouse
inputs only work when the focus is toggled off (with the exception of the right
mouse button, however when the game has started the right mouse button has no
effect).
Screenshots