Browse Source

remove spurious cast

GitOrigin-RevId: 62d8d539d7
master
Colin McMillen 4 years ago
parent
commit
3589a3660f
  1. 4
      Jumpy.Shared/Player.cs

4
Jumpy.Shared/Player.cs

@ -47,11 +47,11 @@ namespace Jumpy {
if (gamePad[0].IsButtonDown(Buttons.DPadLeft) || leftStick.X < -0.5) {
facing = Facing.Left;
pose = Pose.Walking;
position.X -= (int) (moveSpeed * (float) time.ElapsedGameTime.TotalSeconds);
position.X -= (int) (moveSpeed * time.ElapsedGameTime.TotalSeconds);
} else if (gamePad[0].IsButtonDown(Buttons.DPadRight) || leftStick.X > 0.5) {
facing = Facing.Right;
pose = Pose.Walking;
position.X += (int) (moveSpeed * (float) time.ElapsedGameTime.TotalSeconds);
position.X += (int) (moveSpeed * time.ElapsedGameTime.TotalSeconds);
} else if (gamePad[0].IsButtonDown(Buttons.DPadDown) || leftStick.Y < -0.5) {
pose = Pose.Crouching;
} else if (gamePad[0].IsButtonDown(Buttons.DPadUp) || leftStick.Y > 0.5) {

Loading…
Cancel
Save