コード例 #1
0
ファイル: DungeonMaker.cs プロジェクト: Sinellil/roguelike-cs
        private void SpawnCreaturesLevel5(int level, MapGeneratorBSP mapGen)
        {
            //Level 2 just Swarmers (but lots of them)
            List<Monster> monstersToPlace = new List<Monster>();

            for (int i = 0; i < 5; i++)
            {
                Creatures.Swarmer patrolBot = new Creatures.Swarmer();
                monstersToPlace.Add(patrolBot);
            }

            for (int i = 0; i < 3; i++)
            {
                Creatures.PatrolBot patrolBot = new Creatures.PatrolBot();
                AddMonsterLinearPatrol(patrolBot, level, mapGen);

            }
            for (int i = 0; i < 3; i++)
            {
                Creatures.RollingBomb patrolBot = new Creatures.RollingBomb();
                monstersToPlace.Add(patrolBot);
            }

            AddMonstersEqualDistribution(monstersToPlace, level, mapGen);

            //This sets light level in the creatures
            SetLightLevelUniversal(level, level, 5);
        }
コード例 #2
0
ファイル: DungeonMaker.cs プロジェクト: Sinellil/roguelike-cs
        private void SpawnCreaturesLevel1(int level, MapGeneratorBSP mapGen)
        {
            //Level 1 just Linear Patrol Bots

            for (int i = 0; i < 6; i++)
            {
                Creatures.PatrolBot patrolBot = new Creatures.PatrolBot();
                AddMonsterLinearPatrol(patrolBot, level, mapGen);
            }

            //This sets light level in the creatures
            SetLightLevelUniversal(level, level, 5);
        }