Skip to content

Instantly share code, notes, and snippets.

@remisarrailh
Created May 11, 2019 23:28
Show Gist options
  • Save remisarrailh/cc6edade65199a8c43dd9b02fbc967b2 to your computer and use it in GitHub Desktop.
Save remisarrailh/cc6edade65199a8c43dd9b02fbc967b2 to your computer and use it in GitHub Desktop.
drawAnimation();
if (animation_direction) {
animation_state--;
} else {
animation_state++;
}
if (animation_state == 5) {
animation_direction = true;
}
if (animation_state == 0) {
animation_direction = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment