Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Gamepad N5110
Diff: snake/snake.h
- 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