/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
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); }
static void Main() { using (var game = new Game1()) game.Run(); }