Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: engine/engine.cpp
- 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);
}