-
-
Save phaedryx/169770abb0191535ee3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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