ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_ll17lrc_v2

Dependencies:   mbed

Revision:
11:7a4abe731f9c
Parent:
10:df6a496270be
Child:
12:299479b6bb59
--- a/Imposs/ImpossEngine.cpp	Thu May 21 12:51:46 2020 +0000
+++ b/Imposs/ImpossEngine.cpp	Mon May 25 16:40:59 2020 +0000
@@ -1,4 +1,4 @@
-#include "ImpossEngine.h"
+ #include "ImpossEngine.h"
 
 
 ImpossEngine::ImpossEngine()
@@ -53,6 +53,10 @@
     if (level == 4){
          _four.draw(lcd);
     }
+    
+    if (level == 5){
+         _five.draw(lcd);
+    }
          
     _ball.update(_d,pad);
     
@@ -151,6 +155,18 @@
         _y --;
         
     if(collision == true){
+        lcd.clear();
+        lcd.printString("  You died! ",0,2);
+        lcd.refresh();
+        wait(0.1); 
+        pad.leds_on();
+        wait(0.2);
+        pad.leds_off();
+        wait(0.1);
+        pad.leds_on();
+        wait(0.2);
+        pad.leds_off();
+        
         _ball.level_finish();
         }
     }