Esempio n. 1
0
        public Level GenerateThirdTutorialLevel()
        {
            LevelPlan levelPlan = new LevelPlan();

            float segmentLength = 5;

            for (int i = 0; i < 30; i++)
            {
                float offset = 3 + i * segmentLength;

                LevelElementPlacement singleProjectile = LevelElementPlacement.CreateSingleSynchro(
                    LevelElementType.SingleProjectile, offset);

                List <float> synchros = new List <float>()
                {
                    offset + 2, offset + 2.5f, offset + 3
                };

                LevelElementPlacement multipleProjectiles = LevelElementPlacement.CreateMultipleSynchro(
                    LevelElementType.MultipleProjectiles, synchros);

                levelPlan.AddLevelElementPlacement(singleProjectile);
                levelPlan.AddLevelElementPlacement(multipleProjectiles);
            }

            Level level = GenerateLevel(levelPlan);

            level.Name       = "TutorialLevel3";
            level.IsTutorial = true;

            return(level);
        }
Esempio n. 2
0
        public Level GenerateFirstTutorialLevel()
        {
            LevelPlan levelPlan = new LevelPlan();

            float segmentLength = 7;

            for (int i = 0; i < 30; i++)
            {
                float offset = 3 + i * segmentLength;

                LevelElementPlacement highCollectible = LevelElementPlacement.CreateSingleSynchro(
                    LevelElementType.HighCollectible, offset);
                LevelElementPlacement jumpObstacle = LevelElementPlacement.CreateSingleSynchro(
                    LevelElementType.JumpObstacle, offset + 2);
                LevelElementPlacement chasm = LevelElementPlacement.CreateProlongedSynchro(
                    LevelElementType.Chasm, offset + 4, offset + 5);

                levelPlan.AddLevelElementPlacement(highCollectible);
                levelPlan.AddLevelElementPlacement(jumpObstacle);
                levelPlan.AddLevelElementPlacement(chasm);
            }

            Level level = GenerateLevel(levelPlan);

            level.Name       = "TutorialLevel1";
            level.IsTutorial = true;

            return(level);
        }
Esempio n. 3
0
        public Level GenerateSecondTutorialLevel()
        {
            LevelPlan levelPlan = new LevelPlan();

            float segmentLength = 4;

            for (int i = 0; i < 30; i++)
            {
                float offset = 3 + i * segmentLength;

                LevelElementPlacement duckObstacle = LevelElementPlacement.CreateProlongedSynchro(
                    LevelElementType.DuckObstacle, offset, offset + 2);

                levelPlan.AddLevelElementPlacement(duckObstacle);
            }

            Level level = GenerateLevel(levelPlan);

            level.Name       = "TutorialLevel2";
            level.IsTutorial = true;

            return(level);
        }