Simon Atkinson 201255483

Dependencies:   mbed

Snake Game

Summary

Hello and welcome to my Snake Game. Snake is a simple game where you control a snake and eat an apple which increases your size. Normally touching the walls will kill you, always touching yourself will make you die!

Controls

The Controls for this game are simple the Start button starts the game (who would have thought) this button is the left button on the bottom of the gamepad next to the two blue potentiometers. The Reset button on the right of the potentiometers resets the game. Once the game starts use the left thumbstick to control the movement of the snake.

If you hit the wall with your snake you will die and the game will end.

Bugs/Missing Features

Unfortunatley I wasn't able to get the game eating the apple to work, when I tried I could never get it to detect the collisions I tried a few different ways but ran out of time. Because that doesn't work the score doesn't increase and the apple doesn't spawn in a different place. I will try continue to work on this when I have time as I enjoyed doing this project even though it was very frustrating at times!

History

Final Submission. I have read and agreed with Statement of Academic Integrity. default tip

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:57:33 +0000] rev 21

Final Submission. I have read and agreed with Statement of Academic Integrity.


Final Submission. I have read and agreed with Statement of Academic Integrity.

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:54:52 +0000] rev 20

Final Submission. I have read and agreed with Statement of Academic Integrity.


Docs for SnakeEngine trying to get them to work :(

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:52:33 +0000] rev 19

Docs for SnakeEngine trying to get them to work :(


Having to publish for Docs;

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:48:37 +0000] rev 18

Having to publish for Docs;


Docs

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:45:55 +0000] rev 17

Docs


Documentation Update;

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:44:54 +0000] rev 16

Documentation Update;


Updating Docs

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:35:50 +0000] rev 15

Updating Docs


Documentation;

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:31:05 +0000] rev 14

Documentation;


Tried to get the eat function to detect when the snake collides with the apple and it would flash the green LEDs and increase the score and respawn the apple but haven't managed to get it to work. Commiting due to time to go back if needed.

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 22:13:33 +0000] rev 13

Tried to get the eat function to detect when the snake collides with the apple and it would flash the green LEDs and increase the score and respawn the apple but haven't managed to get it to work. Commiting due to time to go back if needed.


Commented out the safe wall and added the wall of death that kills the snake on touch. When the snake dies the game ends and the score is still displayed with instructions how to the restart the game. The LEDs turn to flashing red!

2020-06-05, by Psy1990 [Fri, 05 Jun 2020 20:47:43 +0000] rev 12

Commented out the safe wall and added the wall of death that kills the snake on touch. When the snake dies the game ends and the score is still displayed with instructions how to the restart the game. The LEDs turn to flashing red!