ELEC2645 (2017/18) / Mbed 2 deprecated el17yw

Dependencies:   mbed

Revision:
14:a4176da69b49
Parent:
13:7ad2072d63ac
Child:
15:0a55e0ac8421
--- a/engine/engine.cpp	Mon Apr 23 21:41:13 2018 +0000
+++ b/engine/engine.cpp	Mon Apr 23 22:18:33 2018 +0000
@@ -134,9 +134,9 @@
     Vector2D rect_pos = _rect.get_pos();
     Vector2D money_pos = _money.get_pos();
     if (
-        (money_pos.x-2 >= rect_pos.x)and
-        (money_pos.x+2 <= rect_pos.x+10)and
-        (money_pos.y == 40))
+        (money_pos.x >= rect_pos.x+3)and
+        (money_pos.x+4 <= rect_pos.x+7)and
+        (money_pos.y+2 == 40))
         
              {
              money_pos.y = 0;  
@@ -157,7 +157,7 @@
     lcd.clear();
     lcd.printString("  Game Over",0,1);  
     lcd.refresh();
-    wait(5);
+    wait(2);
 }