GUI had old code when I was toying with doing lighting with a png.

main
Zed A. Shaw 3 days ago
parent c11384df59
commit bdfd61c8e7
  1. 3
      README.md
  2. 4
      gui.cpp
  3. 2
      gui.hpp

@ -102,9 +102,6 @@ cd roguish
# first compile takes a while
make
# will play a sound and open windows
make test
# this copies the binary so you can run it
make run
```

@ -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);
}

@ -41,8 +41,6 @@ struct ActionLog {
const int GAME_MAP_POS = 600;
class GUI {
sf::RectangleShape $darkness;
sf::Texture $light_test;
string $status_text = "NOT DEAD";
Canvas $canvas;
Map& $game_map;

Loading…
Cancel
Save