A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

Revision:
55:fc618f82d1d0
Parent:
50:2c5cb92a5361
Child:
58:c8d90bb7404a
--- a/RoomEngine/RoomEngine.cpp	Thu May 09 08:12:41 2019 +0000
+++ b/RoomEngine/RoomEngine.cpp	Thu May 09 08:18:36 2019 +0000
@@ -376,7 +376,7 @@
 {
     for (int i = 0; i < bullets_max; i++) {
         if (player->valid_bullets[i]) {
-            if (!player->delete_out_of_bounds_bullets(room->get_current_map_2d(), room->get_doorways())) { // Delete any bullet that goes out the screen or hits walls, if none, then
+            if (!(player->delete_out_of_bounds_bullets(room->get_current_map_2d(), room->get_doorways()))) { // Delete any bullet that goes out the screen or hits walls, if none, then
                 for (int j = 0; j < MAX_ENEMIES; j++) {
                     if (room->valid_enemies[j] && (entity_collision(*player->bullets_array[i], *room->enemies[j]))) { // Delete bullets and damage enemy if player bullets collide with any enemy
                         room->enemies[j]->take_damage(player->get_attack());