Instantly share code, notes, and snippets.

@Gazer /Example.java Secret
Created Dec 13, 2016

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