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:
- 41:0697508a28ba
- Parent:
- 37:a404860171a9
- Child:
- 51:4d0cd75e7ed3
--- a/Entity/Entity.cpp Tue May 07 12:42:12 2019 +0000 +++ b/Entity/Entity.cpp Tue May 07 17:02:30 2019 +0000 @@ -28,16 +28,16 @@ } // Checking if the player walks into a wall if no doorway on that side exists - else if ( !(*(doorways)) && (pos_y < 9) ) { + else if ( !(*(doorways)) && (pos_y <= 10) ) { return true; } - else if ( !(*(doorways+1)) && (pos_x + hitbox.width - 1 > 81) ) { + else if ( !(*(doorways+1)) && (pos_x + hitbox.width - 1 >= 81) ) { return true; } - else if ( !(*(doorways+2)) && (pos_y + hitbox.width - 1 > 36) ) { + else if ( !(*(doorways+2)) && (pos_y + hitbox.height - 1 >= 45) ) { return true; } - else if ( !(*(doorways+3)) && (pos_x < 2) ) { + else if ( !(*(doorways+3)) && (pos_x <= 3) ) { return true; } }