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: Rocket/Rocket.h
- Revision:
- 2:3fd0d3d69556
- Child:
- 3:489437d4ebd7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Rocket/Rocket.h Wed Apr 18 17:45:07 2018 +0000
@@ -0,0 +1,34 @@
+#ifndef ROCKET_H
+#define ROCKET_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Rocket
+{
+public:
+
+ Rocket();
+ ~Rocket();
+ void init();
+ void draw(N5110 &lcd);
+ void drawFullHearts(N5110 &lcd);
+ void drawTwoHearts(N5110 &lcd);
+ void drawOneHearts(N5110 &lcd);
+ void update(Direction d,float mag, N5110 &lcd);
+ Vector2D get_pos();
+ void add_score();
+ int get_score();
+
+
+private:
+
+ int _x;
+ int _y;
+ int _speed;
+ Vector2D p;
+ int _score;
+
+};
+#endif
\ No newline at end of file