|
@ -29,6 +29,8 @@ namespace Jumpy { |
|
|
this.texture = texture; |
|
|
this.texture = texture; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: refactor input to have a virtual "which directions & buttons were being pressed"
|
|
|
|
|
|
// instead of complicated if-statements in this function.
|
|
|
public void Update(GameTime time, History<GamePadState> gamePad) { |
|
|
public void Update(GameTime time, History<GamePadState> gamePad) { |
|
|
if (gamePad[0].IsButtonDown(Buttons.A) && airState == AirState.Ground) { |
|
|
if (gamePad[0].IsButtonDown(Buttons.A) && airState == AirState.Ground) { |
|
|
pose = Pose.Jumping; |
|
|
pose = Pose.Jumping; |
|
|