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: RosenEngine/RosenEngine.h
- Revision:
- 9:241a1a7d8527
- Parent:
- 8:87a845b8575e
- Child:
- 10:c33d7593a275
--- a/RosenEngine/RosenEngine.h Tue Mar 12 10:53:11 2019 +0000 +++ b/RosenEngine/RosenEngine.h Tue Apr 09 05:14:07 2019 +0000 @@ -5,8 +5,8 @@ #include "N5110.h" #include "Gamepad.h" #include "Ship.h" -#include "Mission1.h" - +#include "Weapons.h" +#include "Menu.h" class RosenEngine { @@ -19,6 +19,13 @@ void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); + void get_pos(); + void RosenEngine::title(N5110 &lcd); + + int ship_xpos; + int ship_ypos; + int ship_width; + private: void check_ship_projectile_collision(); @@ -27,8 +34,11 @@ // Variables Ship _ship; + Weapons _weapons; + Menu _menu; float _xjoystick; float _yjoystick; + Direction _d; };