コード例 #1
0
ファイル: main.c プロジェクト: gsrr/Python
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;
}
コード例 #2
0
ファイル: main.cpp プロジェクト: Darrus/SP1
//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();
}