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:
- 26:abbc19edc5c1
- Parent:
- 24:26369d92a06a
- Child:
- 27:a1b41626f57c
--- a/Entity/Entity.cpp Fri Apr 26 02:38:05 2019 +0000 +++ b/Entity/Entity.cpp Mon Apr 29 02:45:17 2019 +0000 @@ -16,7 +16,7 @@ void Entity::update_prev_pos() { prev_pos = position; -}; +} bool Entity::matrix_collision_test(float pos_x, float pos_y, int map_no) { @@ -31,14 +31,6 @@ return false; } -bool Entity::death_check() -{ - if (hp <= 0) { - return true; - } - return false; -} - // mutators void Entity::position_add_x(float change_x)