bird

Dependencies:   mbed

Revision:
1:8672e52115e3
Parent:
0:3887ebee1b37
diff -r 3887ebee1b37 -r 8672e52115e3 bird/bird.cpp
--- a/bird/bird.cpp	Fri May 03 17:51:38 2019 +0000
+++ b/bird/bird.cpp	Sat May 04 10:24:57 2019 +0000
@@ -10,15 +10,18 @@
 
 void bird::draw(N5110 &lcd)
 {
-    lcd.drawRect(30,_y,2,2,FILL_BLACK);
+    lcd.drawRect(30,_y,4,2,FILL_BLACK);
+    lcd.drawRect(32,_y+2,1,1,FILL_BLACK);
     _y += 3;   
 }
 
 
-void bird::check(Gamepad &pad)
+void bird::check(Gamepad &pad, N5110 &lcd)
 {
     while (pad.check_event(Gamepad::A_PRESSED) == true) {
         _y -= 6;
+        lcd.drawRect(32,_y+2,1,1,FILL_TRANSPARENT);
+        
        }  
     }