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

Dependencies:   mbed MotionSensor

Revision:
40:cbcbf6fc1421
Parent:
39:0c2521949429
Child:
41:0697508a28ba
--- a/RoomEngine/RoomEngine.cpp	Tue May 07 09:43:36 2019 +0000
+++ b/RoomEngine/RoomEngine.cpp	Tue May 07 12:42:12 2019 +0000
@@ -1,16 +1,17 @@
 #include "RoomEngine.h"
 // Constructor
-RoomEngine::RoomEngine(float global_contrast)
+RoomEngine::RoomEngine(float global_contrast, Player *current_player)
 {
     _room_x = 5;
     _room_y = 5;
     _global_contrast = global_contrast;
+    current_player->set_position(39, 27);
 }
 
 // Destructor
 RoomEngine::~RoomEngine()
 {
-    delete player;
+    room->unload();
 }
 
 // Public Functions
@@ -409,6 +410,7 @@
         if (j == player->get_pos_y()) {
             player->draw(lcd);
         }
+        player->draw_bullets(lcd, j);
         room->draw_enemies(lcd, j);
         room->draw_collectibles(lcd, j);   
     }