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:
- 8:86cb9a9f8a73
- Parent:
- 6:5bea67cc96f9
- Child:
- 9:8e695df3cc36
diff -r 06a2558155f0 -r 86cb9a9f8a73 Alien/Alien.cpp --- a/Alien/Alien.cpp Tue Mar 24 16:44:48 2020 +0000 +++ b/Alien/Alien.cpp Thu Mar 26 15:24:49 2020 +0000 @@ -1,23 +1,23 @@ -#include "Alien.h" +// #include "Alien.h" -void Alien::init(int y, int size) { - X = WIDTH/2 - Size/2, - Y = y, - Size = size, - Speed = 0.2, -} +// void Alien::init(int y, int size) { +// X = WIDTH/2 - Size/2, +// Y = y, +// Size = size, +// Speed = 0.2, +// } -void Alien::draw(N5110 &lcd) { - lcd.drawRect(X, Y, Size, Size, FILL_BLACK); -} +// void Alien::draw(N5110 &lcd) { +// lcd.drawRect(X, Y, Size, Size, FILL_BLACK); +// } -Vector2D Alien::get_position() { - Vector2D p = {X,Y}; - return p; -} +// Vector2D Alien::get_position() { +// Vector2D p = {X,Y}; +// return p; +// } -void Alien::update() { - X+=Speed; -} +// void Alien::update() { +// X+=Speed; +// }