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

Dependencies:   mbed MotionSensor

Revision:
39:0c2521949429
Parent:
37:a404860171a9
Child:
40:cbcbf6fc1421
--- a/RoomEngine/RoomEngine.cpp	Tue May 07 03:47:39 2019 +0000
+++ b/RoomEngine/RoomEngine.cpp	Tue May 07 09:43:36 2019 +0000
@@ -405,9 +405,14 @@
 {   
     room->draw_room(lcd);
     //lcd.drawSprite(0,0,screen_height,screen_width,(char *)level_map[1]);
-    player->draw(lcd);
-    room->draw_enemies(lcd);
-    room->draw_collectibles(lcd);
+    for(int j = 0; j < HEIGHT; j++) {
+        if (j == player->get_pos_y()) {
+            player->draw(lcd);
+        }
+        room->draw_enemies(lcd, j);
+        room->draw_collectibles(lcd, j);   
+    }
+    
     room->draw_room_overlay(lcd);
     if (_L) {
         draw_health(lcd);