Owen Cavender 201159294

Dependencies:   mbed Gamepad2

Files at this revision

API Documentation at this revision

Comitter:
el17oc
Date:
Sat May 30 20:20:10 2020 +0000
Parent:
16:9500059ad5d8
Commit message:
Final Submission. I have read and agreed with Statement of Academic Integrity

Changed in this revision

snake.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/snake.cpp	Sat May 30 05:43:50 2020 +0000
+++ b/snake.cpp	Sat May 30 20:20:10 2020 +0000
@@ -31,7 +31,7 @@
     _reset_apple = false;             //triggers the generation of a new apple position.
     _score = 0;                       //initialises score to 0
     _direction = down;                  //initial direction
-    _countdown = 18;                  //initial number of moves is lower than the reset value in order to keep the number of moves low to increase difficulty
+    _countdown = 22;                  //initial number of moves is lower than the reset value in order to keep the number of moves low to increase difficulty (changed it from 18 - 22 as it wasn't possible with 18 moves)
 }
 
 Vector2D Snake::get_Snakehead()