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:
- 10:df6a496270be
- Parent:
- 9:e2dd152867d1
- Child:
- 11:7a4abe731f9c
--- a/Imposs/ImpossEngine.cpp Mon May 18 16:49:20 2020 +0000 +++ b/Imposs/ImpossEngine.cpp Thu May 21 12:51:46 2020 +0000 @@ -15,6 +15,7 @@ void ImpossEngine::complete(Gamepad &pad,N5110 &lcd) { + level = 0; _start.complete(pad,lcd); int x = 0; int y = 21; @@ -53,9 +54,7 @@ _four.draw(lcd); } - _ball.update(_d,pad); - - + _ball.update(_d,pad); _ball.draw(lcd); @@ -63,7 +62,6 @@ void ImpossEngine::update(Gamepad &pad,N5110 &lcd) { - check_collision(pad,lcd); check_finish(pad); @@ -76,6 +74,19 @@ void ImpossEngine::set_level_one(){ level = 1; } + +void ImpossEngine::set_level_two(){ + level = 2; + } + +void ImpossEngine::set_level_three(){ + level = 3; + } + +void ImpossEngine::set_level_four(){ + level = 4; + } + void ImpossEngine::check_collision(Gamepad &pad,N5110 &lcd) {