Lighting is now in its own class using the new Pathing class. This should allow me to make it more consistent and possibly make Pathing more efficient.

This commit is contained in:
Zed A. Shaw 2024-12-01 17:54:43 -05:00
parent e05335b153
commit 3f7a9cc124
18 changed files with 209 additions and 257 deletions

View file

@ -18,9 +18,11 @@
#include "sound.hpp"
#include "render.hpp"
#include "panel.hpp"
#include "lights.hpp"
using std::string;
using ftxui::Canvas, ftxui::Component, ftxui::Screen, ftxui::Button;
using lighting::LightRender;
constexpr int SCREEN_WIDTH = 40;
constexpr int SCREEN_HEIGHT = 30;
@ -47,6 +49,7 @@ class GUI {
ActionLog $log;
Panel $status_ui;
Panel $map_view;
LightRender $lights;
bool $show_modal = false;
Component $test_button;
DinkyECS::World& $world;