|
|
@ -10,7 +10,11 @@ |
|
|
|
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor |
|
|
|
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor |
|
|
|
#include <filesystem> |
|
|
|
#include <filesystem> |
|
|
|
#include <fcntl.h> |
|
|
|
#include <fcntl.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN64) || defined(_WIN32) |
|
|
|
#include <io.h> |
|
|
|
#include <io.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace ftxui; |
|
|
|
using namespace ftxui; |
|
|
|
namespace fs = std::filesystem; |
|
|
|
namespace fs = std::filesystem; |
|
|
@ -51,7 +55,9 @@ void configure_world(DinkyECS::World &world, Map &game_map) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) { |
|
|
|
int main(int argc, char *argv[]) { |
|
|
|
|
|
|
|
#if defined(_WIN64) || defined(_WIN32) |
|
|
|
_setmode(_fileno(stdout), _O_U16TEXT); |
|
|
|
_setmode(_fileno(stdout), _O_U16TEXT); |
|
|
|
|
|
|
|
#endif |
|
|
|
DinkyECS::World world; |
|
|
|
DinkyECS::World world; |
|
|
|
|
|
|
|
|
|
|
|
Map game_map(GAME_MAP_X, GAME_MAP_Y); |
|
|
|
Map game_map(GAME_MAP_X, GAME_MAP_Y); |
|
|
|