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: SnakeEngine/SnakeEngine.h
- Revision:
- 5:e0f08e8022de
- Parent:
- 4:748b3e0062f6
- Child:
- 6:266fb8fc17f4
diff -r 748b3e0062f6 -r e0f08e8022de SnakeEngine/SnakeEngine.h
--- a/SnakeEngine/SnakeEngine.h Wed May 27 20:57:21 2020 +0000
+++ b/SnakeEngine/SnakeEngine.h Thu May 28 16:29:55 2020 +0000
@@ -5,6 +5,7 @@
#include "N5110.h"
#include "Gamepad.h"
#include "Head.h"
+#include "Body.h"
// gap from edge of screen
#define GAP 2
@@ -25,9 +26,10 @@
int hy;
int _head_length;
int _head_speed;
-
+ int _nbody;
Head _h;
+ Body _b;
Direction _d;
float _mag;