Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void UpdateDebug()
- {
- if (netMode != 2)
- {
- if (keyState.IsKeyDown(Keys.Left))
- {
- screenPosition.X -= 32f;
- }
- if (keyState.IsKeyDown(Keys.Right))
- {
- screenPosition.X += 32f;
- }
- if (keyState.IsKeyDown(Keys.Up))
- {
- screenPosition.Y -= 32f;
- }
- if (keyState.IsKeyDown(Keys.Down))
- {
- screenPosition.Y += 32f;
- }
- int i = 0;
- int j = 0;
- i = (int)((mouseState.X + screenPosition.X) / 16f);
- j = (int)((mouseState.Y + screenPosition.Y) / 16f);
- if ((((mouseState.X < screenWidth) && (mouseState.Y < screenHeight)) && ((i >= 0) && (j >= 0))) && ((i < maxTilesX) && (j < maxTilesY)))
- {
- Lighting.addLight(i, j, 1f);
- if (mouseState.RightButton == ButtonState.Pressed)
- {
- ButtonState leftButton = mouseState.LeftButton;
- }
- if (mouseState.RightButton == ButtonState.Pressed)
- {
- int myPlayer = Main.myPlayer;
- bool active = player[myPlayer].active;
- for (int k = -1; k < 2; k++)
- {
- for (int m = -1; m < 2; m++)
- {
- }
- }
- }
- else if (mouseState.LeftButton == ButtonState.Pressed)
- {
- for (int n = -5; n <= 5; n++)
- {
- for (int num7 = 5; num7 >= -5; num7--)
- {
- if (netMode != 1)
- {
- Liquid.AddWater(i + n, j + num7);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment