Minor fixes to make initializing the terminal more consistent and to remove a magic number for wall limits.

This commit is contained in:
Zed A. Shaw 2024-12-04 08:19:04 -05:00
parent 2d5490131d
commit ae43dad499
12 changed files with 47 additions and 42 deletions

View file

@ -13,10 +13,6 @@
#include <filesystem>
#include <fcntl.h>
#if defined(_WIN64) || defined(_WIN32)
#include <io.h>
#endif
using namespace ftxui;
using namespace components;
using lighting::LightSource;
@ -68,9 +64,6 @@ const int GAME_MAP_X = 40;
const int GAME_MAP_Y = 40;
int main(int argc, char *argv[]) {
#if defined(_WIN64) || defined(_WIN32)
_setmode(_fileno(stdout), _O_U16TEXT);
#endif
DinkyECS::World world;
Map game_map(GAME_MAP_X, GAME_MAP_Y);
save::load_configs(world);