Beispiel #1
0
        public GameLevel(int width, int height, TileSet tileSet) : base(width, height, tileSet)
        {
            _soundManager = SoundManager.Instance;

            switch (tileSet)
            {
            case TileSet.Grass:
                _soundManager.SoundPlay(SoundManager.SoundEnum.Grass);
                _texture = Textures.Clone(Textures.GrassLandscape);
                break;

            case TileSet.Desert:
                _soundManager.SoundPlay(SoundManager.SoundEnum.Desert);
                _texture = Textures.Clone(Textures.DesertLandscape);
                break;

            case TileSet.Sand:
                _soundManager.SoundPlay(SoundManager.SoundEnum.Desert);
                _texture = Textures.Clone(Textures.SandLandscape);
                break;

            case TileSet.Snow:
                _soundManager.SoundPlay(SoundManager.SoundEnum.Snow);
                _texture = Textures.Clone(Textures.SnowLandscape);
                break;

            case TileSet.Volcanic:
                _soundManager.SoundPlay(SoundManager.SoundEnum.Lava);
                _soundManager.SoundPlay(SoundManager.SoundEnum.Lava2);
                _texture = Textures.Clone(Textures.VolcanicLandscape);
                break;
            }
        }