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:
- 13:b85f14d35be1
- Parent:
- 12:be491ab6e742
- Child:
- 14:e88bcf5c0887
diff -r be491ab6e742 -r b85f14d35be1 Alien/Alien.h
--- a/Alien/Alien.h Wed Apr 01 14:40:29 2020 +0000
+++ b/Alien/Alien.h Wed Apr 01 16:00:44 2020 +0000
@@ -8,7 +8,7 @@
void init(int x, int y, int size);
void render(N5110 &lcd);
Vector2D get_position();
- void update(N5110 &lcd);
+ void update(N5110 &lcd, int step_x, int remainder_x);
void collision(N5110 &lcd);
private:
@@ -17,4 +17,6 @@
bool Alive;
int Speed;
int Size;
+ int StartX;
+ int StartY;
};
\ No newline at end of file