示例#1
0
文件: Program.cs 项目: reelgood/dcsg
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DCSG game = new DCSG())
     {
         game.Run();
     }
 }
示例#2
0
文件: DCSG.cs 项目: reelgood/dcsg
 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";
 }