ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_ll17lrc_v2

Dependencies:   mbed

Revision:
5:5c132202b642
Parent:
4:a9d5fca3b7ba
Child:
7:35465b3bf586
--- a/Imposs/ImpossEngine.cpp	Sun May 17 15:55:47 2020 +0000
+++ b/Imposs/ImpossEngine.cpp	Sun May 17 19:09:13 2020 +0000
@@ -17,7 +17,7 @@
 {
     _start.complete(pad,lcd);   
 }
-
+ 
 void ImpossEngine::read_input(Gamepad &pad)
 {
     _d = pad.get_direction();
@@ -27,9 +27,7 @@
 void ImpossEngine::draw(N5110 &lcd)
 {
     // draw the elements in the LCD buffer
-    // pitch
-    
-    _ball.draw(lcd);
+    // pitch   
     
     if (level == 0){
         _zero.draw(lcd);
@@ -38,6 +36,8 @@
     if (level == 1){
         _one.draw(lcd);
     }
+    
+    _ball.draw(lcd);
 
 }
 
@@ -137,5 +137,3 @@
         }
         
 }
-
-