Snake Game
in
Programming Questions
•
26 days ago
help please
0) Set an initial food location, worm location, food size and worm size. Set the score to 0, The worm starts with 1 segment.
1) If the user presses the start key (the space bar), the game begins.
a) Use the arrow keys to move the worm up, down, left and right (extra feature: allow diagonal movement)
b) Press p to pause the game
c) Press q to quit the game
d) Press r to reset the game from the beginning (step 0)
e) Press the space bar to start a paused game.
3) if the worm eats the food:
a) The worm get bigger by one segment (extra feature: worms grows faster as the game progresses)
b) The food re-appears at a random location
c) The score is increased
4) If the worm goes off the screen or runs into itself, the user loses. Game over!
5) When the game is over, show the final score
1