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:
- 4:740e14ebbc97
- Parent:
- 3:f9cd1a38d5c6
- Child:
- 5:bb6edc5b5be3
--- a/RosenEngine/RosenEngine.h Sat Mar 02 19:36:45 2019 +0000 +++ b/RosenEngine/RosenEngine.h Mon Mar 04 14:05:00 2019 +0000 @@ -4,6 +4,7 @@ #include "mbed.h" #include "N5110.h" #include "Gamepad.h" +#include "Mission1.h" class RosenEngine @@ -12,17 +13,26 @@ public: RosenEngine(); ~RosenEngine(); - /* - void RosenEngine::init(int ship_width,int ship_speed,int ship_x_pos,int ship_y_pos); - void init(int paddle_width,int paddle_height,int ball_size,int speed); + void RosenEngine::init(int ship_width,int ship_speed,int ship_xpos,int ship_ypos); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); - */ + private: + void check_ship_projectile_collision(); + void check_enemy_ship_collision(); + void check_enemy_projectile_collision(); + + // Variables + int _ship_speed; + int _ship_width; + int _ship_xpos; + int _ship_ypos + + float _xjoystick; + float _yjoystick; - };