static void setupgame(int i) { allocgame(i & 2); initgame(); #if !NO_MENU if (!in_menu) goto skipmenu; while (gamemenu()) { in_menu = 0; rm_invitfile(); skipmenu: #endif writeconfig(); do textgfx_entergame(); while (startgame()); #if !NO_MENU clearwin(0); in_menu = 1; textgfx_entermenu(); readoptions(); } inputdevs_player[0] = 0; # ifdef SOCKET rmsocket(); mk_invitfile(); # endif #endif game = NULL; }
//Links everything together and runs the game void main(void) { //Console title : aMAZE SetConsoleTitle(L"aMAZE"); //Set console size HWND wh = GetConsoleWindow(); MoveWindow(wh, 450, 250, 1000, 450, TRUE); gamemenu(); }