Rendering with color is working now but still has problems with enabling/resetting the default colors.

This commit is contained in:
Zed A. Shaw 2024-11-02 06:02:13 -04:00
parent a36b187879
commit e864e14eab
8 changed files with 57 additions and 45 deletions

View file

@ -7,6 +7,10 @@
#include "collider.hpp"
#include "render.hpp"
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor
using namespace ftxui;
/*
* This needs to be turned into a real world generator
* system.
@ -47,6 +51,7 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
int main() {
Terminal::SetColorSupport(Terminal::Color::TrueColor);
DinkyECS::World world;
Map game_map(GAME_MAP_X, GAME_MAP_Y);
game_map.generate();