GUI had old code when I was toying with doing lighting with a png.
This commit is contained in:
parent
c11384df59
commit
bdfd61c8e7
3 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
```
|
||||
|
|
4
gui.cpp
4
gui.cpp
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
2
gui.hpp
2
gui.hpp
|
@ -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…
Add table
Add a link
Reference in a new issue