예제 #1
0
파일: Game1.cs 프로젝트: bipkar/Carronade
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     drawSprites           = new List <Sprite>();
     actors  = new List <Actor>();
     builder = new XMLAssetBuilder(Content);
     if (mainGame == null)
     {
         mainGame = this;
         //It's going to upset a couple of people but for the sake of playing animations as expected 60FPS is the way to go
         IsFixedTimeStep = true;
     }
 }
예제 #2
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     builder = new XMLAssetBuilder(Content);
     if (mainGame == null)
     {
         mainGame = this;
         //It's going to upset a couple of people but for the sake of playing animations as expected 60FPS is the way to go
         IsFixedTimeStep = true;
         activeRoom      = null;
         rooms           = new Dictionary <string, BaseRoom>();
     }
 }