Skip to content

Instantly share code, notes, and snippets.

@criswell
Created August 25, 2015 01:08
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 criswell/69c32e9801c6bb801795 to your computer and use it in GitHub Desktop.
Save criswell/69c32e9801c6bb801795 to your computer and use it in GitHub Desktop.
Worst code I've ever written
if (GameConfig.BKGEffectsEnabled && GameConfig.ParticleBKGEffects &&
gameTime.IsRunningSlowly ?
timer_Diffraction > time_PerDiffractionDrawDelay :
timer_Diffraction > time_PerDiffractionDrawNormal
&& diffractionFx.Enabled && diffractionFx.NumParticlesAlive > 0)
{
diffractionFx.PreDraw(gameTime);
timer_Diffraction = 0;
}
@criswell
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment