Skip to content

Instantly share code, notes, and snippets.

@smoogipoo
Created July 12, 2020 13:24
Show Gist options
  • Select an option

  • Save smoogipoo/87b2c4f30460bb5b4f05098f61df8f91 to your computer and use it in GitHub Desktop.

Select an option

Save smoogipoo/87b2c4f30460bb5b4f05098f61df8f91 to your computer and use it in GitHub Desktop.
if (UpsideDown)
{
if (ModManager.CheckActive(Player.currentScore.EnabledMods, Mods.Hidden))
hiddenFade.Position.Y = HitPosition + hiddenMask.VectorScale.Y / 1.6f;
else
hiddenFade.Position.Y = WindowManager.DEFAULT_HEIGHT - hiddenMask.VectorScale.Y / 1.6f;
}
else
{
if (ModManager.CheckActive(Player.currentScore.EnabledMods, Mods.Hidden))
hiddenFade.Position.Y = HitPosition - hiddenMask.VectorScale.Y / 1.6f;
else
hiddenFade.Position.Y = hiddenMask.VectorScale.Y / 1.6f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment