Final Commit

Dependencies:   mbed

Revision:
18:406fc298a7c4
Parent:
17:94dd8a691d4a
Child:
19:b437806e579b
--- a/SnakeEngine/SnakeEngine.h	Wed Apr 25 10:21:54 2018 +0000
+++ b/SnakeEngine/SnakeEngine.h	Mon Apr 30 08:11:40 2018 +0000
@@ -50,7 +50,7 @@
     SnakeEngine(); // constructor
     ~SnakeEngine(); // destructor
     
-    void init(int snake_position_x, int snake_postion_y); // initiallises the position of the food, and snake 
+    void init(); // initiallises the position of the food, and snake 
     void draw(N5110 &lcd); // draws snake/food to the lcd
     void update(Gamepad &pad); // updates depending on gamepad input
     void get_input(Gamepad &pad); // gets the input from the gamepad
@@ -83,6 +83,8 @@
     Direction _in;
     Direction _cur;
     
+    bool _collision;
+    
     int _array_x[100];
     int _array_y[100];