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.cpp
- Revision:
- 31:c7bd3ed16840
- Parent:
- 30:711d722f3cef
- Child:
- 32:098fbc1222cd
--- a/RosenEngine/RosenEngine.cpp Fri Apr 19 19:40:01 2019 +0000 +++ b/RosenEngine/RosenEngine.cpp Sat Apr 20 03:52:22 2019 +0000 @@ -18,7 +18,7 @@ // initialise the game parameters _ship.init(ship_width,ship_height,ship_speed,ship_xpos,ship_ypos); // place seeker above the ship - _enemy.init(48,0,1); + _enemy.init(48,0,3); _menu.init(16); _health.init(_shipno); @@ -39,10 +39,11 @@ void RosenEngine::draw(N5110 &lcd, Gamepad &pad) { + lcd.drawRect(0,0,78,48,FILL_TRANSPARENT); _health.draw_health(lcd,_shipno); _health.draw_shields(lcd); _enemy.draw_seeker(lcd); - _enemy.draw_shooter(lcd,1); + _enemy.draw_shooter(lcd,3); if(_shipno == 0) { _ship.set_dimensions(9,6); _ship.draw_ship(lcd,_shipno);