Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created November 10, 2020 00:26
Show Gist options
  • Save AlabasterAxe/126214a9b7feed98df844503a19ecf93 to your computer and use it in GitHub Desktop.
Save AlabasterAxe/126214a9b7feed98df844503a19ecf93 to your computer and use it in GitHub Desktop.
dinosaur's frame advancing logic
frame = (elapsedTime.inMilliseconds / 100).floor() % 2 + 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment