cooking pot lids fly off

- also fixes issues with fading shadow colours
- TODO: make fading bg texture colour more intuitive
This commit is contained in:
minenice55
2022-08-06 21:09:28 -04:00
parent c4693eb093
commit bd0d05772a
8 changed files with 1716 additions and 15 deletions

View File

@ -49,7 +49,9 @@ namespace HeavenStudio.Games.Scripts_KarateMan
ComboPot3, // path 2
ComboPot4, // path 3
ComboPot5, // path 4
ComboBarrel // path 5
ComboBarrel,// path 5
CookingLid, //only used for hit
}
public enum FlyStatus {
@ -153,6 +155,13 @@ namespace HeavenStudio.Games.Scripts_KarateMan
path = 1;
comboId = -1;
break;
case ItemType.CookingLid:
CurrentCurve = ItemCurves[9];
path = 1;
curveTargetBeat = 2f;
status = FlyStatus.Hit;
comboId = -1;
break;
default:
KarateMan.instance.ScheduleInput(startBeat, 1f, InputType.STANDARD_DOWN | InputType.DIRECTION_DOWN, ItemJustOrNg, ItemThrough, ItemOut);
KarateMan.instance.ScheduleUserInput(startBeat, 1f, InputType.STANDARD_ALT_DOWN, ItemWrongAction, ItemOut, ItemOut);
@ -331,7 +340,8 @@ namespace HeavenStudio.Games.Scripts_KarateMan
Jukebox.PlayOneShotGame("karateman/cookingPot", forcePlay: true);
p = Instantiate(HitParticles[1], HitPosition[1].position, Quaternion.Euler(0, 0, UnityEngine.Random.Range(0f, 360f)), KarateMan.instance.ItemHolder);
p.Play();
//todo: pot lid
KarateMan.instance.CreateItemInstance(startBeat + 1f, "Item09", ItemType.CookingLid);
GetComponent<Animator>().Play("Item08", -1, 0);
break;
case ItemType.Alien:
CurrentCurve = ItemCurves[1];