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.cpp
- Revision:
- 11:63e54f6e7939
- Parent:
- 10:1a3499f6b583
- Child:
- 13:d04a6caba40d
--- a/Entity/Entity.cpp Sun Apr 21 23:23:35 2019 +0000 +++ b/Entity/Entity.cpp Tue Apr 23 03:10:09 2019 +0000 @@ -2,6 +2,7 @@ // constructors +void Entity::update_prev_pos(){prev_pos = position;}; // accessors bool Entity::get_moving(){return moving;} @@ -13,4 +14,6 @@ int Entity::get_offset_x(){return sprite_size.offset_x;} int Entity::get_offset_y(){return sprite_size.offset_y;} int Entity::get_pos_x(){return position.x;} -int Entity::get_pos_y(){return position.y;} \ No newline at end of file +int Entity::get_pos_y(){return position.y;} +int Entity::get_prev_pos_x(){return prev_pos.x;} +int Entity::get_prev_pos_y(){return prev_pos.y;} \ No newline at end of file