Rendering with color is working now but still has problems with enabling/resetting the default colors.
This commit is contained in:
parent
a36b187879
commit
e864e14eab
8 changed files with 57 additions and 45 deletions
5
main.cpp
5
main.cpp
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue