예제 #1
0
int main(int argc, char** argv)
{
	CGameEngine game;

	int width = 1600;
	int height = 900;
    
    if(bool tiny = false) {
        width /= 3; height /= 3;
    }
    
	game.Init("Leap", width, height, 16, false);
	
	game.ChangeState( CPlayState::Instance() );
	
	while (game.Running())
	{
		game.HandleEvents();
		game.Update();
		game.Draw();
	}
	
	game.Cleanup();
	
	return 0;
}
예제 #2
0
파일: main.cpp 프로젝트: kfdm/murasaki
int main ( int argc, char *argv[] ) {
	CGameEngine game;
	game.Init( "Engine Test v1.0" );
	game.ChangeState( CIntroState::Instance() );
	game.Run();
	game.Cleanup();
	return 0;
}