Skip to content

Instantly share code, notes, and snippets.

@maxattack
Created February 11, 2014 00:10
Show Gist options
  • Save maxattack/8926863 to your computer and use it in GitHub Desktop.
Save maxattack/8926863 to your computer and use it in GitHub Desktop.
float u = clamp(player.deathCountdown/PLAYER_DEATH_SECONDS);
u = 1.f - easeOut4(1.f - u);
setTransform(translationMatrix(vec(
8.f * sinf(7.f * M_TAU * u),
16.f* cosf(13.f * M_TAU * u)
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment