mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 15:07:39 +02:00
Bop Refactor + Tweaks/Fixes (#582)
* blue bear tweaks * OnBeatPulse callback added * Fixing humming bug in BM + Metronome fix + Some games conversion to onbeatpulse * clappy trio to drumming practice * rest of the games converted * two minor changes
This commit is contained in:
@ -152,7 +152,6 @@ namespace HeavenStudio.Games
|
||||
|
||||
public Paddlers paddlers;
|
||||
|
||||
public GameEvent bop = new GameEvent();
|
||||
private bool goBop = true;
|
||||
|
||||
public static RhythmRally instance;
|
||||
@ -357,16 +356,6 @@ namespace HeavenStudio.Games
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Paddler bop animation.
|
||||
if (cond.ReportBeat(ref bop.lastReportedBeat, bop.startBeat % 1))
|
||||
{
|
||||
if (goBop && !inPose)
|
||||
{
|
||||
BopSingle();
|
||||
}
|
||||
}
|
||||
|
||||
opponentServing = false;
|
||||
|
||||
//update camera
|
||||
@ -375,6 +364,14 @@ namespace HeavenStudio.Games
|
||||
GameCamera.AdditionalFoV = cameraFOV;
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
if (goBop && !inPose)
|
||||
{
|
||||
BopSingle();
|
||||
}
|
||||
}
|
||||
|
||||
public void Bop(double beat, float length, bool bop, bool bopAuto)
|
||||
{
|
||||
goBop = bopAuto;
|
||||
|
Reference in New Issue
Block a user