add TODO to Player
GitOrigin-RevId: 0f94fab230a6f3071dbe2838235a8250b2db662c
This commit is contained in:
parent
2c2feb0f88
commit
06620ce368
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user