This is the main type for your game
Наследование: Microsoft.Xna.Framework.Game
Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (CannonGame game = new CannonGame())
     {
         game.Run();
     }
 }
Пример #2
0
        public CannonGame()
        {
            Graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            Graphics.PreferredBackBufferWidth = 480;
            Graphics.PreferredBackBufferHeight = 800;

            //Gjør musepekeren synlig
            IsMouseVisible = true;

            //Dette gjør at telefonen fungerer i begge landskapsmodusene.
            Graphics.SupportedOrientations = DisplayOrientation.Portrait;

            Instance = this;
        }