GitOrigin-RevId: 0f94fab230
0f94fab230
@ -29,6 +29,8 @@ namespace Jumpy {
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) {
if (gamePad[0].IsButtonDown(Buttons.A) && airState == AirState.Ground) {
pose = Pose.Jumping;