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
Fork of ll14zs by
Diff: Level/Level.h
- Revision:
- 3:1231a3961984
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Level/Level.h Thu May 24 17:37:17 2018 +0000 @@ -0,0 +1,35 @@ +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Car.h" + +class Level +{ + +public: + + Level(); + ~Level(); + + void draw(N5110 &lcd); + + void update(); + + Vector2D get_velocity(); + + void set_velocity(Vector2D v); + + Vector2D get_pos(); + + void set_pos(Vector2D p); + +private: + + //parameters + int _width; + int _height; + int _x; + int _y; + Vector2D _velocity; + +}; \ No newline at end of file