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.h
- Revision:
- 10:9189419fda68
- Parent:
- 9:8e695df3cc36
- Child:
- 12:be491ab6e742
--- a/Alien/Alien.h Fri Mar 27 11:55:53 2020 +0000
+++ b/Alien/Alien.h Fri Mar 27 22:58:56 2020 +0000
@@ -10,11 +10,13 @@
void init(int y, int size);
void render(N5110 &lcd);
Vector2D get_position();
- void update();
+ void update(N5110 &lcd);
+ void collision(N5110 &lcd);
-public:
+private:
int X;
int Y;
+ bool Alive;
int Speed;
int Size;
};
\ No newline at end of file