* munchy monk input + mustache fixes
* fork lifter and pajama party bopping
* meat grinder miss bop fix
* cloud monkey Real
* marching orders Go! was broken
* force march doesn't break when it's too early from a game switch
* you can use the March! block without the marching now
This commit is contained in:
AstrlJelly
2023-06-10 15:18:45 -04:00
parent c5f5b6d800
commit faf3fbf97c
40 changed files with 4253 additions and 2766 deletions

View File

@ -13,24 +13,21 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
public static ForkLifterPlayer instance { get; set; }
[Header("Objects")]
public GameObject fork;
public Sprite peaSprite;
public Sprite hitFX;
public Sprite hitFXG;
public Sprite hitFXMiss;
public Sprite hitFX2;
public Transform early, perfect, late;
[SerializeField]
private BoxCollider2D col;
private Animator anim;
private int currentHitInList = 0;
public bool shouldBop;
public int currentEarlyPeasOnFork;
public int currentPerfectPeasOnFork;
public int currentLatePeasOnFork;
private float lastReportedBeat;
private bool isEating = false;
@ -57,6 +54,11 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
{
currentHitInList = 0;
}
if (Conductor.instance.ReportBeat(ref lastReportedBeat) && anim.IsAnimationNotPlaying() && shouldBop)
{
anim.DoScaledAnimationAsync("Player_Bop", 0.5f);
}
}
public void Eat()
@ -68,6 +70,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
}
}
// used in an animation event
public void EatConfirm()
{
if (topbun && middleburger && bottombun)