ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
26:6427f09cf8d3
Parent:
24:23fd6b451db7
Child:
28:d0b0a64a832d
diff -r ead0e7bd1569 -r 6427f09cf8d3 Bat/Bat.cpp
--- a/Bat/Bat.cpp	Wed May 01 09:08:03 2019 +0000
+++ b/Bat/Bat.cpp	Wed May 01 11:56:36 2019 +0000
@@ -13,8 +13,8 @@
 void Bat::init(int x,int y)
 {   
     batPad.init();
-    _x = 42;
-    _y = 15;
+    _bat_x = 42;
+    _bat_y = 15;
     _hitBall=0;
     
 }
@@ -25,7 +25,6 @@
 void Bat::draw(N5110 &lcd){
     lcd.drawLine(38,36,41,36,1);
     lcd.drawRect(41,35,6,3,FILL_BLACK);
-    //ball1.draw();
 }
 int Bat::get_hitBall(UX &ux){
     _hitBall=ux.get_a_pressed();