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;
}
Exemple #2
0
int main ( int argc, char *argv[] ) {
	CGameEngine game;
	game.Init( "Engine Test v1.0" );
	game.ChangeState( CIntroState::Instance() );
	game.Run();
	game.Cleanup();
	return 0;
}