Meteor defense project

Dependencies:   N5110 mbed

Revision:
27:d4926f19c12a
Parent:
26:140515d80457
Child:
28:450ab72fabdc
--- a/GameEngine/GameEngine.cpp	Fri Apr 14 15:42:37 2017 +0000
+++ b/GameEngine/GameEngine.cpp	Fri Apr 14 21:43:05 2017 +0000
@@ -17,8 +17,8 @@
     //printf("init completed \n");
 }
 void GameEngine::update(Gamepad &pad, N5110 &lcd) {
-    _d1.droneLeftSide(Array2, charArray2, lcd);
-    _d2.droneLeftSide(Array2, charArray2, lcd);
+    _d1.droneScan(Array2, charArray2, lcd);
+    _d2.droneScan(Array2, charArray2, lcd);
     drawSpawn(lcd); 
     drawLaserPlayer(pad, lcd);
     bombAndShield(pad, lcd);
@@ -80,7 +80,7 @@
             //printf("current shield = %d \n",weap._shield); 
             //printf("shield regen rate = %d \n",weap._shieldRegenRate);
         } else { //when the shield is fully charged. It will automatically activate the shield.
-            pad.buttonhold_B = 1;
+                pad.buttonhold_B = 1;
         }
     }
     weap.shieldMeter(lcd);