ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

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);