Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Revision:
1:37802772843e
Child:
2:b62e8be35a5d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sprite/Sprite.h	Mon Mar 25 10:48:23 2019 +0000
@@ -0,0 +1,30 @@
+#ifndef SPRITE_H
+#define SPRITE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Bitmap.h"
+
+/*Sprite Class*/
+
+extern N5110 lcd;
+
+class Sprite {
+
+public:
+    Sprite();
+    ~Sprite();
+    void init(int height,int width, int * bitmap,Vector2D pos);
+    void render(N5110 lcd);
+    Vector2D getPos();
+    void setPos(Vector2D pos);
+private:
+    Vector2D _pos;
+    Vector2D _velocity;
+    int _height;
+    int _width;
+    int * _bitmap;
+};
+
+#endif
\ No newline at end of file