Exemplo n.º 1
0
        //Show Pause screen with P
        public override void HandleKeys(InputHelper aInputHelper, ISceneManager aSceneManager)
        {
            //Show Pause Screen
            if (aInputHelper.IsNewPress(Keys.P))
            {
                aSceneManager.ShowOverlay(new Pause());
            }

            //Show The exit screen
            if (aInputHelper.IsNewPress(Keys.Escape))
            {
                aSceneManager.ShowOverlay(new ExitGameIntsance());
            }
        }
Exemplo n.º 2
0
        public override void HandleKeys(InputHelper aInputHelper, ISceneManager aSceneManager)
        {
            //Does the user want to quit?
            if (aInputHelper.IsNewPress(Keys.Q) || aInputHelper.IsNewPress(Keys.Escape))
            {
                aSceneManager.ShowOverlay(new ExitGameIntsance());
                return;
            }

            //Else - Let's be silly!
            if (aInputHelper.IsCurPress(Keys.E) &&
                aInputHelper.IsCurPress(Keys.W) &&
                aInputHelper.IsCurPress(Keys.A) &&
                aInputHelper.IsCurPress(Keys.N))
            {
                //aSceneManager.SetScene(new SuperSpecialAwesomeScene());
                Console.WriteLine("Dylan smells!");
                return;
            }
        }