/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Space394Game game = new Space394Game()) { game.Run(); } }
public Space394Game() { game = this; // Components.Add(new GamerServicesComponent(this)); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Initialize(); #if !DEBUG graphics.PreferredBackBufferWidth = 1920; graphics.PreferredBackBufferHeight = 1080; graphics.PreferMultiSampling = false; graphics.ApplyChanges(); graphics.IsFullScreen = true; AutoTexture2D.WidthConversion = graphics.PreferredBackBufferWidth / 800.0f; AutoTexture2D.HeightConversion = graphics.PreferredBackBufferHeight / 480.0f; #else AutoTexture2D.WidthConversion = 1; AutoTexture2D.HeightConversion = 1; #endif }