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: Rock/Rock.h
- Revision:
- 15:dde4ce4bf7fe
- Child:
- 31:27c938ec2a11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Rock/Rock.h Mon Apr 06 15:37:02 2020 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Rock
+{
+public:
+ void init(int x, int y, int size);
+ void render(N5110 &lcd);
+ Vector2D get_position();
+ void set_life(bool x);
+ bool get_life();
+
+private:
+ int X;
+ int Y;
+ bool Alive;
+ int Size;
+
+};
\ No newline at end of file