Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created November 10, 2020 00:03
Show Gist options
  • Select an option

  • Save AlabasterAxe/b8190e1b3ea7e94318cde0a0222c3c8d to your computer and use it in GitHub Desktop.

Select an option

Save AlabasterAxe/b8190e1b3ea7e94318cde0a0222c3c8d to your computer and use it in GitHub Desktop.
Checking if the dinosaur is already jumping to disallow double jumping
void jump() {
if (state != DinoState.jumping) {
velY = 650;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment