A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: Entity/Entity.h
- Revision:
- 57:1c12361b6e3d
- Parent:
- 51:4d0cd75e7ed3
- Child:
- 58:c8d90bb7404a
--- a/Entity/Entity.h Thu May 09 08:42:52 2019 +0000 +++ b/Entity/Entity.h Thu May 09 09:50:19 2019 +0000 @@ -11,7 +11,6 @@ int width; int height; }; - Hitbox hitbox; struct SpriteSize { int width; int height; @@ -22,23 +21,24 @@ // above of top-left corner of hitbox int offset_y; }; - SpriteSize sprite_size; struct Position { float x; float y; }; - Position position; - Position prev_pos; struct FrameCount { int count; int number; int max; }; - FrameCount frame; - int hp; - int attack; - int face; - float velocity; + Hitbox _hitbox; + SpriteSize _sprite_size; + Position _position; + Position _prev_pos; + FrameCount _frame; + int _hp; + int _attack; + int _face; + float _velocity; int _hp_drop_chance; public: