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: alien/alien.cpp
- Revision:
- 13:9d6ee753eca6
- Parent:
- 11:df8ce6637022
- Child:
- 14:6c4bce33c1a1
diff -r 45b1249b3d9a -r 9d6ee753eca6 alien/alien.cpp
--- a/alien/alien.cpp Mon Apr 15 14:36:07 2019 +0000
+++ b/alien/alien.cpp Fri Apr 19 17:33:57 2019 +0000
@@ -17,10 +17,7 @@
_size = size;
- /*
- _x = WIDTH/2 - _size/2;
- _y = HEIGHT/2 - _size/2;
- */
+
srand(time(NULL));
@@ -43,5 +40,9 @@
}
+ void Ball::draw(N5110 &lcd)
+{
+ lcd.drawRect(_x,_y,_size,_size,FILL_BLACK);
+}
+
-