A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

Revision:
12:a1c1991835ca
Parent:
11:63e54f6e7939
Child:
13:d04a6caba40d
--- a/Entity/Entity.h	Tue Apr 23 03:10:09 2019 +0000
+++ b/Entity/Entity.h	Tue Apr 23 22:59:12 2019 +0000
@@ -29,13 +29,17 @@
         };
         Position position;
         Position prev_pos;
+        struct FrameCount  {
+            int count;
+            int number;
+            int max;
+        };
+        FrameCount frame;
         int hp;
         int face;
         
     public:
         // Functions
-        virtual void move(float, float) = 0;
-        
         bool matrix_collision_test(float pos_x, float pos_y, int map_no){
             for (int j = pos_y; j < (int)pos_y + hitbox.height; j++){
                 for(int i = pos_x; i < (int)pos_x + hitbox.width; i++){
@@ -48,6 +52,10 @@
             return false;
         }
         
+        virtual void move(float, float) = 0; // movement control and miscellaneous updates
+        
+        virtual int * get_frame() = 0;
+        
         virtual void chkdmg() = 0;
         
         void undo_move_x(bool status_x){