Exemplo n.º 1
0
        public override void Update()
        {
            base.Update();

            if (!Focused)
            {
                return;
            }

            var keyState = Keyboard.GetState();

            if (keyState.IsKeyDown(Key.Z) && SceneID != SpheresScene.SceneID)
            {
                MotherBee.Cancel();
                SceneID = SpheresScene.SceneID;
                World   = SpheresScene.CreateSphereScene();
            }
            else if (keyState.IsKeyDown(Key.X) && SceneID != MirrorRoomScene.SceneID)
            {
                MotherBee.Cancel();
                SceneID = MirrorRoomScene.SceneID;
                World   = MirrorRoomScene.CreateTestScene();
            }
            else if (keyState.IsKeyDown(Key.C) && SceneID != StanfordScene.SceneID)
            {
                MotherBee.Cancel();
                SceneID = StanfordScene.SceneID;
                World   = StanfordScene.Create();
            }
            else if (keyState.IsKeyDown(Key.V) && SceneID != MeshesScene.SceneID)
            {
                MotherBee.Cancel();
                SceneID = MeshesScene.SceneID;
                World   = MeshesScene.Create();
            }// TODO:  add some more scenes
        }
Exemplo n.º 2
0
 public override void Init()
 {
     base.Init();
     World = SpheresScene.CreateSphereScene();
 }