Guest User

CloudHopper

a guest
Jun 15th, 2011
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.25 KB | None | 0 0
  1. private static void UpdateDebug()
  2.         {
  3.             if (netMode != 2)
  4.             {
  5.                 if (keyState.IsKeyDown(Keys.Left))
  6.                 {
  7.                     screenPosition.X -= 32f;
  8.                 }
  9.                 if (keyState.IsKeyDown(Keys.Right))
  10.                 {
  11.                     screenPosition.X += 32f;
  12.                 }
  13.                 if (keyState.IsKeyDown(Keys.Up))
  14.                 {
  15.                     screenPosition.Y -= 32f;
  16.                 }
  17.                 if (keyState.IsKeyDown(Keys.Down))
  18.                 {
  19.                     screenPosition.Y += 32f;
  20.                 }
  21.                 int i = 0;
  22.                 int j = 0;
  23.                 i = (int)((mouseState.X + screenPosition.X) / 16f);
  24.                 j = (int)((mouseState.Y + screenPosition.Y) / 16f);
  25.                 if ((((mouseState.X < screenWidth) && (mouseState.Y < screenHeight)) && ((i >= 0) && (j >= 0))) && ((i < maxTilesX) && (j < maxTilesY)))
  26.                 {
  27.                     Lighting.addLight(i, j, 1f);
  28.                     if (mouseState.RightButton == ButtonState.Pressed)
  29.                     {
  30.                         ButtonState leftButton = mouseState.LeftButton;
  31.                     }
  32.                     if (mouseState.RightButton == ButtonState.Pressed)
  33.                     {
  34.                         int myPlayer = Main.myPlayer;
  35.                         bool active = player[myPlayer].active;
  36.                         for (int k = -1; k < 2; k++)
  37.                         {
  38.                             for (int m = -1; m < 2; m++)
  39.                             {
  40.                             }
  41.                         }
  42.                     }
  43.                     else if (mouseState.LeftButton == ButtonState.Pressed)
  44.                     {
  45.                         for (int n = -5; n <= 5; n++)
  46.                         {
  47.                             for (int num7 = 5; num7 >= -5; num7--)
  48.                             {
  49.                                 if (netMode != 1)
  50.                                 {
  51.                                     Liquid.AddWater(i + n, j + num7);
  52.                                 }
  53.                             }
  54.                         }
  55.                     }
  56.                 }
  57.             }
  58.         }
Advertisement
Add Comment
Please, Sign In to add comment