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:
- 7:c38800a428a6
- Parent:
- 6:f3f508cea1c4
- Child:
- 10:62d8cb7742c3
--- a/SnakeEngine/SnakeEngine.h Fri Mar 16 13:02:55 2018 +0000
+++ b/SnakeEngine/SnakeEngine.h Wed Mar 21 13:09:20 2018 +0000
@@ -21,7 +21,7 @@
SnakeEngine(); // constructor
~SnakeEngine(); // destructor
- void init(Vector2D food_position); // initiallises the position of the food, and snake
+ void init(int food_pos_x, int food_pos_y); // 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