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: Engine/Engine.h
- Revision:
- 5:8814d6de77d0
- Parent:
- 4:8ec314f806ae
- Child:
- 6:848d1e4c1a31
--- a/Engine/Engine.h Thu Apr 11 14:44:14 2019 +0000 +++ b/Engine/Engine.h Sat Apr 13 17:37:52 2019 +0000 @@ -12,10 +12,11 @@ Engine(); ~Engine(); void init(int floors_width, int floors_height, int doodler_radius); + void read_input(Gamepad &pad); + void update(Gamepad &pad); void draw(N5110 &lcd); private: - Doodler _dood; Floors _f1; Floors _f2; @@ -35,10 +36,6 @@ int _floors_width; int _doodler_radius; - //initial position of doodler: - int _doodx; - int _doody; - // x and y positions of the floors int _f1x; int _f2x; @@ -61,5 +58,10 @@ int _f9y; int _f10y; + + Doodler _dood; + + Direction _d; + float _mag; }; #endif \ No newline at end of file