|
|
|
@ -32,7 +32,6 @@ using namespace ftxui; |
|
|
|
|
using namespace components; |
|
|
|
|
|
|
|
|
|
GUI::GUI(DinkyECS::World &world, Map& game_map) : |
|
|
|
|
$darkness({1600,800}), |
|
|
|
|
$game_map(game_map), |
|
|
|
|
$log({{"Welcome to the game!"}}), |
|
|
|
|
$status_ui(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), |
|
|
|
@ -49,9 +48,6 @@ GUI::GUI(DinkyECS::World &world, Map& game_map) : |
|
|
|
|
$sounds.load("combat_enemy_hit", "combat_enemy_hit.mp3"); |
|
|
|
|
$sounds.load("combat_miss", "combat_miss.mp3"); |
|
|
|
|
|
|
|
|
|
$light_test.loadFromFile("./assets/light_test.png"); |
|
|
|
|
$darkness.setTexture(&$light_test); |
|
|
|
|
|
|
|
|
|
resize_map(MAX_FONT_SIZE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|