mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Shadow colours are much more accurate
This commit is contained in:
parent
69cb7a729b
commit
e3a5e55d54
3 changed files with 10 additions and 2 deletions
|
@ -172,7 +172,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
||||||
|
|
||||||
for(int i=0;i < shadows.Length; i++)
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
||||||
|
|
||||||
public Color[] LightBulbColors;
|
public Color[] LightBulbColors;
|
||||||
public Color[] BackgroundColors;
|
public Color[] BackgroundColors;
|
||||||
|
public static Color ShadowBlendColor = new Color(195f / 255f, 48f / 255f, 2f / 255f);
|
||||||
|
|
||||||
const float hitVoiceOffset = 0.042f;
|
const float hitVoiceOffset = 0.042f;
|
||||||
|
|
||||||
|
@ -308,5 +309,12 @@ namespace RhythmHeavenMania.Games.KarateMan
|
||||||
shadow.transform.SetAsLastSibling();
|
shadow.transform.SetAsLastSibling();
|
||||||
bomb.GetComponent<Bomb>().shadow = shadow;
|
bomb.GetComponent<Bomb>().shadow = shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Color GetShadowColor()
|
||||||
|
{
|
||||||
|
var col = Color.LerpUnclamped(KarateMan.instance.BGColor, KarateMan.ShadowBlendColor, 0.45f);
|
||||||
|
|
||||||
|
return col;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -118,7 +118,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
||||||
if (Conductor.instance.songPositionInBeats >= createBeat)
|
if (Conductor.instance.songPositionInBeats >= createBeat)
|
||||||
{
|
{
|
||||||
spriteComp.enabled = true;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue