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
Diff: snake/snake.h
- Revision:
- 15:47ea86f1ed70
- Parent:
- 14:9e2ce28b4e63
- Child:
- 20:980b37fde361
diff -r 9e2ce28b4e63 -r 47ea86f1ed70 snake/snake.h
--- a/snake/snake.h Sun May 06 12:58:00 2018 +0000
+++ b/snake/snake.h Mon May 07 11:57:22 2018 +0000
@@ -4,8 +4,6 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
-
-
class snake
{
public:
@@ -19,21 +17,19 @@
void set_pos(Vector2D p);
void point();
int get_point();
-
-
-
-
- private:
+
+private:
+
+ int _point;
int _array;
- int _point;
int dir_snake;
void s();
void n();
void e();
- void w();
+ void w();
int _xoldpos[100];
+ int _yoldpos[100];
int _xnewpos[100];
- int _yoldpos[100];
int _ynewpos[100];
};
#endif