mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:47:37 +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:
@ -228,6 +228,18 @@ namespace HeavenStudio.Games
|
||||
colorEnd = defaultBGColor;
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
if (shouldBop)
|
||||
{
|
||||
Bop();
|
||||
}
|
||||
if (spaceGrampsShouldBop)
|
||||
{
|
||||
GrampsBop();
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
@ -237,17 +249,6 @@ namespace HeavenStudio.Games
|
||||
{
|
||||
scroll.NormalizedX -= xBaseSpeed * xScrollMultiplier * Time.deltaTime;
|
||||
scroll.NormalizedY -= yBaseSpeed * yScrollMultiplier * Time.deltaTime;
|
||||
if (cond.ReportBeat(ref bop.lastReportedBeat, bop.startBeat % 1))
|
||||
{
|
||||
if (shouldBop)
|
||||
{
|
||||
Bop();
|
||||
}
|
||||
if (spaceGrampsShouldBop)
|
||||
{
|
||||
GrampsBop();
|
||||
}
|
||||
}
|
||||
if (isShootingStar)
|
||||
{
|
||||
float normalizedBeat = cond.GetPositionFromBeat(shootingStarStartBeat, shootingStarLength);
|
||||
|
Reference in New Issue
Block a user