This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
コード例 #1
0
ファイル: Program.cs プロジェクト: obcilion/xnaKanonSpill
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (CannonGame game = new CannonGame())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: CannonGame.cs プロジェクト: obcilion/xnaKanonSpill
        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;
        }