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: AlienBullet/AlienBullet.h
- Revision:
- 16:987f72d9bb8f
- Child:
- 17:8b1d16d56ad2
diff -r dde4ce4bf7fe -r 987f72d9bb8f AlienBullet/AlienBullet.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/AlienBullet/AlienBullet.h Fri May 01 12:56:33 2020 +0000
@@ -0,0 +1,27 @@
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class AlienBullet
+{
+public:
+ AlienBullet();
+ ~AlienBullet();
+ void init(int x, int y);
+ void render(N5110 &lcd);
+ void update(Gamepad &pad,N5110 &lcd);
+ Vector2D get_position();
+ void set_hit(bool x);
+ bool get_hit();
+
+private:
+ int Y;
+ int X;
+ int Speed;
+ int Size;
+ bool Hit;
+
+};
+
+
\ No newline at end of file