Example #1
0
 public override void Update(GameTime gameTime)
 {
     BananaGame.GamePlayer.Update(gameTime);
     if (GameKeyState.IsKeyPressed(Keys.U))
     {
         //GameMouseState.WP();
         Vector2Int blah = new Vector2Int(GameMouseState.WorldPosition());
         highlight = new TileHighlight(blah.asVector2(), Color.Blue);
     }
 }
Example #2
0
        private static void debugInputUpdate()
        {
            if (GameKeyState.IsKeyPressed(Keys.F3))
            {
                if ((int)DrawState == Enum.GetValues(typeof(DebugDrawState)).Length)
                {
                    DrawState = DebugDrawState.None;
                }
                else
                {
                    DrawState++;
                }
            }

            if (GameKeyState.IsKeyPressed(Keys.F4))
            {
                IsChunkBoundsDrawn = !IsChunkBoundsDrawn;
            }

            if (GameKeyState.IsKeyPressed(Keys.F12))
            {
                DebugStopTrigger = !DebugStopTrigger;
            }
        }