Please enable JavaScript.
Coggle requires JavaScript to display documents.
"Snake Eater" Mind Map - Coggle Diagram
"Snake Eater" Mind Map
-
Snake
-
Snake Movement
up, down, left and right using w, s, a and d. Dont allow snake to move in two diretions at once
Snake Growth
When snake position and food position are equal, add to snake size
Snake Death
if the snake hits the sides of the screen or itself, then run game_over()
Score
-
Add to score
If snake position and food position are equal, add 1 to score
-
Food
-
Despawn
If snake postion and food position is the same, despawn food
-
Global Variables
Colors
Colours are made using RGB strings (0, 0, 0)
Difficulty
Difficulty is set and later used as the framerate, effectively changing the speed of the snake
-