mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 15:57:36 +02:00
Clappy Trio and Fork Lifter finished + small additions/fixes (#400)
* The funny * Yar har har har * 1 two tree * Hilarious! * procedurally spawning in stuff * bored meeting * A lot! * Assistant stop added * Added Bops * Added Sounds * Added miss stuff!! Only need the miss anim for the pigs!!! * Tweaks * Bugfixes! * anim fix anim fix * STRAIGHT! * Sound offsets fixed * added the new anims to implement * new sheet * loopSpin implemented * woah * mis stuff * doen done done * Various fixes * Fixed clappy trio bop bug * Epic tings * Added color and screen shake * Small things * redid sheets a little * Fixed burger preview * Almost done with forklifter * Bg color and fixed 4 peas for fork lifter * icon * bg stuff for tambourine and forklfiter --------- Co-authored-by: ev <85412919+evdial@users.noreply.github.com>
This commit is contained in:
@ -13,29 +13,43 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
public Sprite[] fastSprites;
|
||||
|
||||
private List<DynamicBeatmap.DynamicEntity> allFlickEntities = new List<DynamicBeatmap.DynamicEntity>();
|
||||
|
||||
public int currentFlickIndex;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
var flickEntities = EventCaller.GetAllInGameManagerList("forkLifter", new string[] { "flick" });
|
||||
List<DynamicBeatmap.DynamicEntity> tempEvents = new List<DynamicBeatmap.DynamicEntity>();
|
||||
for (int i = 0; i < flickEntities.Count; i++)
|
||||
{
|
||||
if (flickEntities[i].beat >= Conductor.instance.songPositionInBeats)
|
||||
{
|
||||
tempEvents.Add(flickEntities[i]);
|
||||
}
|
||||
}
|
||||
allFlickEntities = tempEvents;
|
||||
}
|
||||
|
||||
public void CheckNextFlick()
|
||||
{
|
||||
// var allPlayerActions = EventCaller.GetAllInGameManagerList("forkLifter", new string[] { "gulp", "sigh", "prepare" });
|
||||
// var allPlayerActions = EventCaller.GetAllPlayerEntities("forkLifter");
|
||||
// int currentPlayerEvent = GameManager.instance.currentEvent - EventCaller.GetAllPlayerEntitiesExceptBeforeBeat("forkLifter", Conductor.instance.songPositionInBeats).Count;
|
||||
|
||||
/* if (currentPlayerEvent < allPlayerActions.Count)
|
||||
if (allFlickEntities.Count > 0 && currentFlickIndex >= 0 && currentFlickIndex < allFlickEntities.Count)
|
||||
{
|
||||
switch (allPlayerActions[currentPlayerEvent].datamodel.Split('/')[1])
|
||||
switch (allFlickEntities[currentFlickIndex]["type"])
|
||||
{
|
||||
case "pea":
|
||||
case (int)ForkLifter.FlickType.Pea:
|
||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[0];
|
||||
fastSprite.sprite = fastSprites[0];
|
||||
break;
|
||||
case "topbun":
|
||||
case (int)ForkLifter.FlickType.TopBun:
|
||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[1];
|
||||
fastSprite.sprite = fastSprites[0];
|
||||
break;
|
||||
case "burger":
|
||||
case (int)ForkLifter.FlickType.Burger:
|
||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[2];
|
||||
fastSprite.sprite = fastSprites[1];
|
||||
break;
|
||||
case "bottombun":
|
||||
case (int)ForkLifter.FlickType.BottomBun:
|
||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[3];
|
||||
fastSprite.sprite = fastSprites[0];
|
||||
break;
|
||||
@ -44,9 +58,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
else
|
||||
{
|
||||
ForkLifter.instance.peaPreview.sprite = null;
|
||||
}*/
|
||||
|
||||
// will fix later
|
||||
}
|
||||
}
|
||||
|
||||
public void Prepare()
|
||||
|
Reference in New Issue
Block a user