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: Wall/Wall.cpp
- Revision:
- 1:f09ff0ed98fd
- Parent:
- 0:fd8eda608206
- Child:
- 7:193c0fd7afdd
--- a/Wall/Wall.cpp Wed May 08 18:50:21 2019 +0000
+++ b/Wall/Wall.cpp Wed May 08 19:44:17 2019 +0000
@@ -21,7 +21,6 @@
}
void Wall::draw1(N5110 &lcd) {
-
// draw wall in screen buffer.
lcd.drawRect(_x,0,_width,_height,FILL_BLACK);
}
@@ -36,13 +35,14 @@
}
void Wall::reset() {
-
_x = 99;
int uncertainty = rand() % 39;
- _y = 8 + uncertainty;
+ _height = uncertainty;
}
-
-Vector2D Wall::get_height() {
+int Wall::get_x() {
+ return _x;
+}
+int Wall::get_height() {
return _height;
}
\ No newline at end of file