예제 #1
0
 public LevelManager()
 {
     scenes     = new List <Scene> {
     };
     totalScene = ConfigurationReaderAndWriter.ReadSetting("Scenes");
     Console.WriteLine("Scene = " + totalScene);
     CurrSceneIndex = 1;
     Mode           = 0; RestOfTime = 0;
     StringManager  = new ResourceManager("FinalSprint.Resource1", Assembly.GetExecutingAssembly());
 }
예제 #2
0
 public void Initialize()
 {
     //ConfigurationManager.RefreshSection("Configuration");
     //ConfigurationReaderAndWriter.ReadAllSettings();
     GraphicsDevice.PreferredBackBufferWidth = ConfigurationReaderAndWriter.ReadSetting("WindowWidth");
     //!= -1 ? ConfigurationReaderAndWriter.ReadSetting("WindowWidth") : graphicsDevice.GraphicsDevice.Viewport.Width;  // set this value to the desired width of your window
     GraphicsDevice.PreferredBackBufferHeight = ConfigurationReaderAndWriter.ReadSetting("WindowHeight");
     //!= -1 ? ConfigurationReaderAndWriter.ReadSetting("WindowHeight") : graphicsDevice.GraphicsDevice.Viewport.Height;   // set this value to the desired height of your window
     GraphicsDevice.ApplyChanges();
     MillisecondsPerFrame = 100;
     Boundary             = new Vector2(GraphicsDevice.PreferredBackBufferWidth, GraphicsDevice.PreferredBackBufferHeight);
     MapBoundary          = new Vector2(ConfigurationReaderAndWriter.ReadSetting("StageWidth"), ConfigurationReaderAndWriter.ReadSetting("StageHeight"));
     Pulse = false;
 }