Esempio n. 1
0
        static void Main()
        {
            // 720p window size by default
            GameOptions.Width  = 1280;
            GameOptions.Height = 720;

            // Done setting options, initialize
            Game.Initialize();

            // Base state is the actual game
            Game.SetState(new States.Example());

            // HUD goes above the game, so we push it on top
            Game.PushState(new States.UserInterface());

            // Finally start the game loop
            Game.Run();
        }
Esempio n. 2
0
 static void Main()
 {
     Game.Initialize(new Level(), "Game", 1366, 768, 60);
 }