Example #1
0
        public Level_06(Dictionary<String, BoundingBox> levelBounds,
            Vector3                          levelStart,
            float                            levelStartDirection,
            BoundingSphere                   levelFinish,
            Dictionary<String, Interactable> levelInteractables)
            : base(levelBounds, levelStart, levelStartDirection, levelFinish, levelInteractables)
        {
            mWall_01 = new Wall(new Vector3(200.0f, 0.0f, -350.0f), MathHelper.Pi/2);
            mBound_01 = new BoundingBox(new Vector3(195.0f, 0.0f, -400.0f), new Vector3(205.0f, 200.0f, -300.0f));
            base.LevelBounds.Add("Moving Wall 01", mBound_01);
            mDrawWall_01 = true;
            mWall_02 = new Wall(new Vector3(350.0f, 0.0f, -400.0f), 0.0f);
            mBound_02 = new BoundingBox(new Vector3(300.0f, 0.0f, -405.0f), new Vector3(400.0f, 200.0f, -395.0f));
            base.LevelBounds.Add("Moving Wall 02", mBound_02);
            mDrawWall_02 = true;

            mWall_03 = new Wall(new Vector3(350.0f, 0.0f, -100.0f), 0.0f);
            mBound_03 = new BoundingBox(new Vector3(300.0f, 0.0f, -105.0f), new Vector3(400.0f, 200.0f, -95.0f));
            base.LevelBounds.Add("Moving Wall 03", mBound_03);
            mDrawWall_03 = true;
            mWall_04 = new Wall(new Vector3(500.0f, 0.0f, -350.0f), MathHelper.Pi/2);
            mBound_04 = new BoundingBox(new Vector3(495.0f, 0.0f, -400.0f), new Vector3(505.0f, 200.0f, -300.0f));
            base.LevelBounds.Add("Moving Wall 04", mBound_04);
            mDrawWall_04 = true;

            mWall_05 = new Wall(new Vector3(450.0f, 0.0f, -200.0f), 0.0f);
            mBound_05 = new BoundingBox(new Vector3(400.0f, 0.0f, -205.0f), new Vector3(500.0f, 200.0f, -195.0f));
            base.LevelBounds.Add("Moving Wall 05", mBound_05);
            mDrawWall_05 = true;
            mWall_06 = new Wall(new Vector3(350.0f, 0.0f, -600.0f), 0.0f);
            mBound_06 = new BoundingBox(new Vector3(300.0f, 0.0f, -605.0f), new Vector3(400.0f, 200.0f, -595.0f));
            base.LevelBounds.Add("Moving Wall 06", mBound_06);
            mDrawWall_06 = true;

            mWall_07 = new Wall(new Vector3(300.0f, 0.0f, -250.0f), MathHelper.Pi/2);
            mBound_07 = new BoundingBox(new Vector3(295.0f, 0.0f, -300.0f), new Vector3(305.0f, 200.0f, -200.0f));
            //base.LevelBounds.Add("Moving Wall 07", mBound_07);
            mDrawWall_07 = true;
            mWall_08 = new Wall(new Vector3(700.0f, 0.0f, -550.0f), MathHelper.Pi/2);
            mBound_08 = new BoundingBox(new Vector3(695.0f, 0.0f, -600.0f), new Vector3(705.0f, 200.0f, -500.0f));
            //base.LevelBounds.Add("Moving Wall 08", mBound_08);
            mDrawWall_08 = true;

            mCurrentCycle = 0;
            mCycleCounter = 0;
            mCycleUpdated = false;

            mSound = SoundMaster.GetSound("wall_move");
        }
Example #2
0
        public Level_05(Dictionary<String, BoundingBox> levelBounds,
            Vector3                          levelStart,
            float                            levelStartDirection,
            BoundingSphere                   levelFinish,
            Dictionary<String, Interactable> levelInteractables)
            : base(levelBounds, levelStart, levelStartDirection, levelFinish, levelInteractables)
        {
            spikes_1 = new BoundingBox(new Vector3(440.0f,   0.0f, -650.0f),
                                       new Vector3(600.0f, 200.0f, -470.0f));
            spikes_2 = new BoundingBox(new Vector3(  0.0f,   0.0f, -690.0f),
                                       new Vector3(145.0f, 200.0f, -650.0f));

            wall_1 = new Wall(new Vector3(550.0f, 0.0f, -150.0f), 0.0f);
            drawWall_1 = true;

            wall_2 = new Wall(new Vector3(200.0f, 0.0f, -650.0f), 0.0f);
            drawWall_2 = true;

            sound = SoundMaster.GetSound("wall_move");
        }