Meteor defense project

Dependencies:   N5110 mbed

Revision:
11:1c48fe71045c
Parent:
10:926b1f89c4f1
Child:
13:38cbce17d7d7
--- a/GameEngine/GameEngine.cpp	Tue Mar 28 21:15:18 2017 +0000
+++ b/GameEngine/GameEngine.cpp	Wed Mar 29 13:52:21 2017 +0000
@@ -48,8 +48,17 @@
         }
     }       
 }
-void GameEngine::bomb(Gamepad &pad, N5110 &lcd) {
+void GameEngine::bomb(Gamepad &pad, N5110 &lcd) { //cooldown not yet implemented.
+    
+    //press L button to toggle flag
     if (pad.check_event(Gamepad::L_PRESSED)) {
-        weap.drawBomb(pad, lcd);
+        if (bombTarget == 1) {
+            bombTarget = 0;
+        } else if(bombTarget == 0) {
+            bombTarget = 1;
+        }
+    }
+    if (bombTarget == 1) {
+        weap.drawBombTarget(Array1, pad, lcd);
     }
 }
\ No newline at end of file