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:
- 30:711d722f3cef
- Parent:
- 29:4c7b16b5b6df
- Child:
- 32:098fbc1222cd
--- a/RosenEngine/RosenEngine.h Fri Apr 19 02:40:08 2019 +0000 +++ b/RosenEngine/RosenEngine.h Fri Apr 19 19:40:01 2019 +0000 @@ -27,7 +27,7 @@ int get_ycursor(); int get_shipno(); void ship_select(N5110 &lcd); - void score(); + int ship_xpos; int ship_ypos; @@ -39,6 +39,7 @@ bool ship_projectile_collision(); bool enemy_ship_collision(); bool enemy_projectile_collision(); + void score(int points); // Variables Ship _ship; @@ -51,6 +52,7 @@ Direction _d; int _ycursor; int _shipno; + int _score; }; @@ -65,6 +67,6 @@ **** orion should send out pulses that stun enemy ships and absorb thier shields(use draw line) **** scale shields properly **** fix the border issue(i.e the ships clip through healthbar) - +**** make it so enemy ship spawning is random use srand */ #endif \ No newline at end of file