Tried to set the background color in the ftxui canvas and weirdly it started doing almost what I want with lighting, but I didn't write any code to do that. There's some bug in how I'm doing it that's causing it to set the colors...correctly. Must find out why.

This commit is contained in:
Zed A. Shaw 2024-11-23 23:11:20 -05:00
parent fb1fd9d8bc
commit 1bb04b4562
5 changed files with 55 additions and 13 deletions

View file

@ -39,6 +39,8 @@ 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;