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: Imposs/ImpossEngine.cpp
- 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(); } }