Skip to content

Instantly share code, notes, and snippets.

@phaedryx
Created March 18, 2012 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phaedryx/169770abb0191535ee3f to your computer and use it in GitHub Desktop.
Save phaedryx/169770abb0191535ee3f to your computer and use it in GitHub Desktop.
void bumpcheck() {
if(bump_condition) {
speedup();
}
else {
move();
}
}
void speedup() {
/* code to increase speed here */
bumpcheck();
}
void move() {
/* code to move at a particular speed here */
bumpcheck();
}
bumpcheck();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment