Skip to content

Instantly share code, notes, and snippets.

@quidmonkey
Last active December 16, 2015 01:49
Show Gist options
  • Save quidmonkey/5357564 to your computer and use it in GitHub Desktop.
Save quidmonkey/5357564 to your computer and use it in GitHub Desktop.
if (this.standing && ig.input.pressed('jump')) {
this.vel.y = -this.jumpVel;
} else if (this.vel.y < 0 && ig.input.state('jump')) {
this.vel.y -= this.smallJumpBoost;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment