forked from lwx940710/Snake
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathREADME.txt
executable file
·28 lines (15 loc) · 1.16 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Game Description:
Press w/a/s/d to control the snake. If the snake eats an apple, it gains 100 scores. It the snake hits wall or itself, and has no extra lives, it dies.
Press p to pause the game. If the game is paused, press p to resume the game and keep the snake’s direction as before the pause, or press w/a/s/d to resume the game and change the snake’s direction.
Press r to restart the game at any time (i.e. while playing, paused, and/or dead).
Default FPS = 60
Default speed = 5
Enhancements:
I have added two power-ups into the game.
1. Golden Apple - If the snake eats a golden apple, it gains an extra life. The possibility of generating a golden apple is 10%.
2. Purple Apple - If the snake eats a purple apple, its speed decreases by 1 (Minimum = 1). If player restarts the game, snake’s speed is reset to default (or the given speed from command line). The possibility of generating a purple apple is 6%.
For easier test of the special apples, you can keep press r until they show.
I have also drawn a snake and apples with fillrectangle, which I am not sure if they can be counted as texture graphics.
Development Environment:
macOS Sierra
version 10.12.2