Exemplo n.º 1
0
        private void LoadLevel(string levelName)
        {
            LevelName = levelName;
            TmxMap map = new TmxMap("Content/" + levelName + ".tmx");

            TilesetManager.LoadMap(map);
            Multiverse = new Multiverse(this, map);
            Multiverse.SetViewport(ViewportMain);
        }
Exemplo n.º 2
0
        private void LoadLevel(string levelName, int levelIndex = -1)
        {
            LevelName         = levelName;
            CurrentLevelIndex = levelIndex;
            Console.WriteLine("Level index: " + CurrentLevelIndex);
            TmxMap map = new TmxMap("Content/" + levelName + ".tmx");

            TilesetManager.LoadMap(map);
            Multiverse = new Multiverse(this, map);
            Multiverse.SetViewport(ViewportMain);
            SetState("playing");
        }