test 1 doc

Dependencies:   mbed Gamepad2

Revision:
2:f22cb01c43bc
Child:
3:e4e1cbf750b6
diff -r 7fe71d8e48da -r f22cb01c43bc Player/Player.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Player/Player.h	Fri Apr 10 19:07:13 2020 +0000
@@ -0,0 +1,64 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Bitmap.h"
+
+
+
+ int player_sprite[] = {
+    1,1,1,1,1,1,1,0,0,
+    1,1,1,1,1,1,1,0,0,
+    1,1,1,0,1,0,1,0,0,
+    1,1,1,0,1,0,1,1,1,
+    1,1,1,0,1,0,1,1,0,
+    1,1,1,1,1,1,1,0,0,
+    0,1,1,0,1,1,0,0,0,
+    0,1,1,0,1,1,0,0,0
+};
+
+
+ int player_inv_sprite[] = {
+    0,0,1,1,1,1,1,1,1,
+    0,0,1,1,1,1,1,1,1,
+    0,0,1,0,1,0,1,1,1,
+    1,1,1,0,1,0,1,1,1,
+    0,1,1,0,1,0,1,1,1,
+    0,1,1,1,1,1,1,1,1,
+    0,0,0,1,1,0,1,1,0,
+    0,0,0,1,1,0,1,1,0
+};
+
+
+
+Bitmap player(player_sprite, 8, 9);
+Bitmap player_inv(player_inv_sprite, 8, 9);
+
+
+
+class Player
+{
+public:
+    Player();
+    ~Player();
+    
+    void init();
+    bool health;
+    bool jump();
+    bool is_jumping();
+    bool dir();
+    void draw(N5110 &lcd);
+    
+private:
+    int _vx;
+    int _vy;
+    int _playerX;
+    int _playerY;
+    bool _direction;
+    bool _jmp;
+    
+};
+    
+#endif
\ No newline at end of file