/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (DCSG game = new DCSG()) { game.Run(); } }
public DCSG() { if (_mgo != null) throw new InstancePlayLimitException("MainGame started twice. This is not possible!"); _mgo = this; graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 800; graphics.PreferredBackBufferHeight = 600; graphics.SynchronizeWithVerticalRetrace = false; IsFixedTimeStep = false; graphics.IsFullScreen = false; Content.RootDirectory = "Content"; }