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:
- 34:1d5b4da3935e
- Parent:
- 29:6b8411bb040a
- Child:
- 37:a404860171a9
--- a/Entity/Entity.cpp Mon May 06 13:27:26 2019 +0000 +++ b/Entity/Entity.cpp Mon May 06 13:58:39 2019 +0000 @@ -18,7 +18,7 @@ prev_pos = position; } -bool Entity::entity_to_map_collision_test(float pos_x, float pos_y, int * map, bool * doorways) +bool Entity::entity_to_map_collision_test(float pos_x, float pos_y, char * map, bool * doorways) { for (int j = pos_y; j < (int)pos_y + hitbox.height; j++) { for(int i = pos_x; i < (int)pos_x + hitbox.width; i++) {