예제 #1
0
파일: Program.cs 프로젝트: akbiggs/Zombies
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
예제 #2
0
파일: Game1.cs 프로젝트: Bigalan09/Zombies
        public Game1()
        {
            Content.RootDirectory = "Content";
            Instance = this;

            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            graphics.PreferMultiSampling = true;
            graphics.IsFullScreen = true;
            graphics.PreparingDeviceSettings += OnPreparingDeviceSettings;
            //new Vector2(1920 / 2, 1200 / 2)
            Bounds = new Vector2(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
            CenterOrigin = new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight / 2);
        }
예제 #3
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }