Minor fixes to make initializing the terminal more consistent and to remove a magic number for wall limits.
This commit is contained in:
parent
2d5490131d
commit
ae43dad499
12 changed files with 47 additions and 42 deletions
7
main.cpp
7
main.cpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue