Exemplo n.º 1
0
 public void LoadScenes(IPlayer player)
 {
     _player = player;
     for (var row = 0; row < _scenes.Length; row++)
     {
         for (var col = 0; col < _scenes[row].Length; col++)
         {
             _scenes[row][col] = new SurvivalScene(_rooms[row][col], _waveManager, player);
         }
     }
 }
Exemplo n.º 2
0
        public void LoadDungeonContent(ContentManager content)
        {
            _rooms = new [] {
                new []
                {
                    new SurvivalRoom(this, content.Load <int[][]>("Shop/ShopTiles"))
                },
                new []
                {
                    new SurvivalRoom(this, content.Load <int[][]>("Rooms/Survival-Dungeon"))
                }
            };

            var rows = _rooms.Length;

            _scenes = new SurvivalScene[rows][];
            for (var row = 0; row < rows; row++)
            {
                var cols = _rooms[row].Length;
                _scenes[row] = new SurvivalScene[cols];
            }

            _waveManager = new WaveManager(content.Load <string[][]>("SurvivalWaves"));
        }