Exemple #1
0
        public void ChangeLevel()
        {
            currentModel = new Level1Model(this, Camara, Input, MediaDir, ShadersDir, Frustum, DrawText, DirectSound);

            currentModel.Init();

            Camara = currentModel.Camera;
        }
Exemple #2
0
        public override void Init()
        {
            D3DDevice.Instance.Device.Transform.Projection =
                Matrix.PerspectiveFovLH(D3DDevice.Instance.FieldOfView,
                                        D3DDevice.Instance.AspectRatio,
                                        D3DDevice.Instance.ZNearPlaneDistance,
                                        D3DDevice.Instance.ZFarPlaneDistance * 2f);

            Cursor.Hide();

            currentModel = new MainMenuModel(this, Camara, Input, MediaDir, ShadersDir, Frustum, DrawText, DirectSound);
            //currentModel = new Level1Model(this, Camara, Input, MediaDir, ShadersDir, Frustum, DrawText, DirectSound);

            currentModel.Init();

            Camara = currentModel.Camera;

            BackgroundColor = Color.Black;
        }