Пример #1
0
        public BridgesScene(Demo demo, string name, int instanceIndex, string info)
        {
            this.demo = demo;
            this.name = name;
            this.instanceIndexName = " " + instanceIndex.ToString();
            this.info = info;

            // Create a new objects in the scene
            skyInstance1      = new Sky(demo, 1);
            quadInstance1     = new Quad(demo, 1);
            cursorInstance    = new Cursor(demo);
            shotInstance      = new Shot(demo);
            car1Instance1     = new Car1(demo, 1);
            bridge1Instance1  = new Bridge1(demo, 1);
            bridge1Instance2  = new Bridge1(demo, 2);
            ragdoll1Instance1 = new Ragdoll1(demo, 1);
            camera1Instance1  = new Camera1(demo, 1);
            lightInstance     = new Lights(demo);

            // Create a new controllers in the scene
            skyDraw1Instance1          = new SkyDraw1(demo, 1);
            cursorDraw1Instance        = new CursorDraw1(demo);
            car1Animation1Instance1    = new Car1Animation1(demo, 1);
            camera1Animation1Instance1 = new Camera1Animation1(demo, 1);
            camera1Draw1Instance1      = new Camera1Draw1(demo, 1);
        }
Пример #2
0
        public RagdollsScene(Demo demo, string name, int instanceIndex, string info)
        {
            this.demo = demo;
            this.name = name;
            this.instanceIndexName = " " + instanceIndex.ToString();
            this.info = info;

            // Create a new objects in the scene
            skyInstance1      = new Sky(demo, 1);
            quadInstance1     = new Quad(demo, 1);
            cursorInstance    = new Cursor(demo);
            shotInstance      = new Shot(demo);
            ragdoll1Instance1 = new Ragdoll1(demo, 1);
            ragdoll2Instance1 = new Ragdoll2(demo, 1);
            ragdoll3Instance1 = new Ragdoll3(demo, 1);
            ragdoll1Instance2 = new Ragdoll1(demo, 2);
            ragdoll2Instance2 = new Ragdoll2(demo, 2);
            ragdoll3Instance2 = new Ragdoll3(demo, 2);
            ragdoll1Instance3 = new Ragdoll1(demo, 3);
            ragdoll2Instance3 = new Ragdoll2(demo, 3);
            ragdoll3Instance3 = new Ragdoll3(demo, 3);
            camera1Instance1  = new Camera1(demo, 1);
            camera1Instance2  = new Camera1(demo, 2);
            lightInstance     = new Lights(demo);

            // Create a new controllers in the scene
            skyDraw1Instance1          = new SkyDraw1(demo, 1);
            cursorDraw1Instance        = new CursorDraw1(demo);
            camera1Animation1Instance1 = new Camera1Animation1(demo, 1);
            camera1Animation1Instance2 = new Camera1Animation1(demo, 2);
            camera1Draw1Instance1      = new Camera1Draw1(demo, 1);
            camera1Draw1Instance2      = new Camera1Draw1(demo, 2);

            oldKeyboardState = demo.GetKeyboardState();
        }
Пример #3
0
        public UserShapesScene(Demo demo, string name, int instanceIndex, string info)
        {
            this.demo = demo;
            this.name = name;
            this.instanceIndexName = " " + instanceIndex.ToString();
            this.info = info;

            // Create a new objects in the scene
            skyInstance1        = new Sky(demo, 1);
            quadInstance1       = new Quad(demo, 1);
            cursorInstance      = new Cursor(demo);
            shotInstance        = new Shot(demo);
            userShapesInstance  = new UserShapes(demo);
            torusMesh1          = new TorusMesh(demo, 1);
            torusMesh2          = new TorusMesh(demo, 2);
            torusMesh3          = new TorusMesh(demo, 3);
            torusMesh4          = new TorusMesh(demo, 4);
            forceField1Instance = new ForceField1(demo);
            forceField2Instance = new ForceField2(demo);
            switch1Instance     = new Switch1(demo);
            switch2Instance     = new Switch2(demo);
            camera1Instance1    = new Camera1(demo, 1);
            lightInstance       = new Lights(demo);

            // Create a new controllers in the scene
            skyDraw1Instance1             = new SkyDraw1(demo, 1);
            cursorDraw1Instance           = new CursorDraw1(demo);
            forceField1Animation1Instance = new ForceField1Animation1(demo, forceField1Instance);
            forceField2Animation1Instance = new ForceField2Animation1(demo, forceField2Instance);
            switch1Animation1Instance     = new Switch1Animation1(demo, switch1Instance);
            switch2Animation1Instance     = new Switch2Animation1(demo, switch2Instance);
            camera1Animation1Instance1    = new Camera1Animation1(demo, 1);
            camera1Draw1Instance1         = new Camera1Draw1(demo, 1);
        }
Пример #4
0
        public StacksScene(Demo demo, string name, int instanceIndex, string info)
        {
            this.demo = demo;
            this.name = name;
            this.instanceIndexName = " " + instanceIndex.ToString();
            this.info = info;

            // Create a new objects in the scene
            skyInstance1     = new Sky(demo, 1);
            quadInstance1    = new Quad(demo, 1);
            cursorInstance   = new Cursor(demo);
            shotInstance     = new Shot(demo);
            jengaInstance1   = new Jenga(demo, 1);
            pyramidInstance1 = new Pyramid(demo, 1);
            wallInstance1    = new Wall(demo, 1);
            camera1Instance1 = new Camera1(demo, 1);
            lightInstance    = new Lights(demo);

            // Create a new controllers in the scene
            skyDraw1Instance1          = new SkyDraw1(demo, 1);
            cursorDraw1Instance        = new CursorDraw1(demo);
            camera1Animation1Instance1 = new Camera1Animation1(demo, 1);
            camera1Draw1Instance1      = new Camera1Draw1(demo, 1);
        }
Пример #5
0
        public DefaultShapesScene(Demo demo, string name, int instanceIndex, string info)
        {
            this.demo = demo;
            this.name = name;
            this.instanceIndexName = " " + instanceIndex.ToString();
            this.info = info;

            // Create a new objects in the scene
            skyInstance1          = new Sky(demo, 1);
            quadInstance1         = new Quad(demo, 1);
            cursorInstance        = new Cursor(demo);
            shotInstance          = new Shot(demo);
            defaultShapesInstance = new DefaultShapes(demo);
            columnInstance1       = new Column(demo, 1);
            columnInstance2       = new Column(demo, 2);
            camera1Instance1      = new Camera1(demo, 1);
            lightInstance         = new Lights(demo);

            // Create a new controllers in the scene
            skyDraw1Instance1          = new SkyDraw1(demo, 1);
            cursorDraw1Instance        = new CursorDraw1(demo);
            camera1Animation1Instance1 = new Camera1Animation1(demo, 1);
            camera1Draw1Instance1      = new Camera1Draw1(demo, 1);
        }