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
RosenEngine/RosenEngine.h
- Committer:
- ikenna1
- Date:
- 2019-04-19
- Revision:
- 29:4c7b16b5b6df
- Parent:
- 28:6319e928f0aa
- Child:
- 30:711d722f3cef
File content as of revision 29:4c7b16b5b6df:
#ifndef ROSENENGINE_H #define ROSENENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Ship.h" #include "Weapons.h" #include "Menu.h" #include "Enemy.h" #include "Health.h" class RosenEngine { public: RosenEngine(); ~RosenEngine(); void init(int ship_width,int ship_height,int ship_speed,int ship_xpos,int ship_ypos); void reset(); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd, Gamepad &pad); void get_pos(); void title(N5110 &lcd); int get_ycursor(); int get_shipno(); void ship_select(N5110 &lcd); void score(); int ship_xpos; int ship_ypos; int ship_width; int ship_height; //*** note: add ship width and ship heirgth in place of 6 and 9 to generalize arrays after they are finished private: bool ship_projectile_collision(); bool enemy_ship_collision(); bool enemy_projectile_collision(); // Variables Ship _ship; Weapons _weapons; Menu _menu; Enemy _enemy; Health _health; float _xjoystick; float _yjoystick; Direction _d; int _ycursor; int _shipno; }; /************STUFF TO FIX****************************** **** add sound effects for sjield braking **** add passive shield regeneration **** work on score increase **** add title screen with name **** make it so title ship switches deopending on ship being used **** make it so back asks you if you are sure and ststes that you will lose all progress **** think of level system **** 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) */ #endif