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: Bat/Bat.cpp
- Revision:
- 26:6427f09cf8d3
- Parent:
- 24:23fd6b451db7
- Child:
- 28:d0b0a64a832d
--- 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();