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:
- 36:c25417f0d150
- Parent:
- 35:3341f2bd0408
- Child:
- 37:8d8c8cce0bc7
--- a/RosenEngine/RosenEngine.h Fri May 03 09:41:53 2019 +0000 +++ b/RosenEngine/RosenEngine.h Fri May 03 18:56:06 2019 +0000 @@ -27,6 +27,7 @@ int get_ycursor(); int get_shipno(); void ship_select(N5110 &lcd); + void check_health(); int ship_xpos; @@ -49,6 +50,7 @@ void kestrelw_shooter_collision(Gamepad &pad); void imperionw_shooter_collision(Gamepad &pad); + // Variables Ship _ship; Weapons _weapons; @@ -66,6 +68,7 @@ Vector2D _shooter2_pos; Vector2D _shooter3_pos; Vector2D _coloc; + bool _dead; }; @@ -86,14 +89,13 @@ */ #endif /* -bool RosenEngine::seeker_ship_collision() -{ - // Vector2D ship_pos = _ship.get_pos(); - Vector2D seeker_pos = _enemy.get_seekerpos(); - int seeker_xpos = seeker_pos.x, seeker_ypos = seeker_pos.y; - bool sscol; - sscol = check_collision(seeker_xpos,seeker_ypos,9,6,ship_xpos,ship_ypos,9,6); - return sscol; - -} +changes not commited +*Fix game playing in background +*Change seeker damage to 175 +*make seeker health 5 +* implement a viewing system for enemy ships +* enemy comes from below very fast +* if you hold a button shields come up in front but not sides +* +* */