Shadow colours are much more accurate

This commit is contained in:
Carson Kompon 2022-02-26 22:28:15 -05:00
parent 69cb7a729b
commit e3a5e55d54
3 changed files with 10 additions and 2 deletions

View file

@ -172,7 +172,7 @@ namespace RhythmHeavenMania.Games.KarateMan
for(int i=0;i < shadows.Length; i++)
{
shadows[i].color = Color.Lerp(KarateMan.instance.BGColor, new Color(35 / 255, 75 / 255, 1 / 255), 0.25f);
shadows[i].color = KarateMan.instance.GetShadowColor();
}
}

View file

@ -29,6 +29,7 @@ namespace RhythmHeavenMania.Games.KarateMan
public Color[] LightBulbColors;
public Color[] BackgroundColors;
public static Color ShadowBlendColor = new Color(195f / 255f, 48f / 255f, 2f / 255f);
const float hitVoiceOffset = 0.042f;
@ -308,5 +309,12 @@ namespace RhythmHeavenMania.Games.KarateMan
shadow.transform.SetAsLastSibling();
bomb.GetComponent<Bomb>().shadow = shadow;
}
public Color GetShadowColor()
{
var col = Color.LerpUnclamped(KarateMan.instance.BGColor, KarateMan.ShadowBlendColor, 0.45f);
return col;
}
}
}

View file

@ -118,7 +118,7 @@ namespace RhythmHeavenMania.Games.KarateMan
if (Conductor.instance.songPositionInBeats >= createBeat)
{
spriteComp.enabled = true;
shadowSpriteComp.color = Color.Lerp(KarateMan.instance.BGColor, new Color(35 / 255, 75 / 255, 1 / 255), 0.25f);
shadowSpriteComp.color = KarateMan.instance.GetShadowColor();
}
else
{