XJEL2645 (18/19) / Mbed 2 deprecated 2645_Mygame

Dependencies:   mbed Gamepad N5110

Revision:
2:934daa65f73d
Parent:
1:b49c36604125
Child:
9:18b059e5abb9
--- a/snake/snake.h	Sat Apr 13 10:07:50 2019 +0000
+++ b/snake/snake.h	Sat Apr 13 15:45:03 2019 +0000
@@ -18,15 +18,19 @@
     void add_score();
     int get_score();
     int get_length();
-
+    void check_eat(Gamepad &pad);
+    void check_over(N5110 &lcd);
+    int over;
+    
 private:
-
-    Vector2D _velocity;
     int _size;
-    int _x [40];
-    int _y [40];
+    int _x [100];
+    int _y [100];
     int _score;
     int _length;
+    int ball_x;
+    int ball_y; 
+    void ball(int length);
 
 };
 #endif
\ No newline at end of file