Skip to content

Instantly share code, notes, and snippets.

@Gazer
Created December 13, 2016 17:38
Embed
What would you like to do?
Example of bad 'if' usage
cody.jump();
if (GeneralUtils.isSoundEnabled()) {
Sound sound = GameAssetManager.get(JUMPING_SOUND, Sound.class);
sound.play(1.0f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment