예제 #1
0
파일: Game.cs 프로젝트: GretelF/squircle
        private void StartLoadingLevel(String name)
        {
            LoadingScreenDrawn = false;
            GameState.SetLoading();

            level = new Level(this);
            level.Name = name;
        }
예제 #2
0
파일: Game.cs 프로젝트: GretelF/squircle
        public Game()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            drawPhysics = false;
            drawVisualHelpers = new DebugLevel();
            drawDebugData = new DebugLevel();

            GameState = new GameState();
            GameState.SetLoading();

            ViewportDimensions = new Vector2(800, 480);

            level = new Level(this);
            level.Name = "level_01";
            level.Menu.InitialWindowName = "mainWindow";

            gameConfig = ConfigFile.FromFile("Content/level/game.cfg");
            gameConfig.IfSectionExists("Audio", section =>
            {
                Audio = new AudioManager(this);
                Audio.Initialize(section);
            });
        }
예제 #3
0
 public LevelGenerator(Level level)
 {
     this.level = level;
 }