|
|
@ -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) { |
|
|
|