mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 10:07:38 +02:00
* add Jukebox library todo: - saving / loading of new format - inferrence of unknown data like past versions - move the temporary float casts to proper use of double - make sound related functions take double for timing - inform people that the Jukebox sound player was renamed to SoundByte lol * make sound, input scheduling, and super curve use double precision * successfully load charts * editor works again v1 riqs can be saved and loaded * first tempo and volume markers are unmovable fix loading of charts' easing values * use gsync / freesync * update Jukebox refs to SoundByte * game events use double part 1 Air Rally - Glee Club converted * don't load song if chart load fails * finish conversion of all minigames * remove editor waveform toggle * timeline now respects added song offset length clear cache files on app close prepped notes for dsp sync * update timeline length when offset changed * update to latest Jukebox * make error panel object in global game manager * improve conductor music scheduling * added error message box fix first game events sometimes not playing
This commit is contained in:
@ -13,7 +13,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
ForkLifter game;
|
||||
private Animator anim;
|
||||
|
||||
public float startBeat;
|
||||
public double startBeat;
|
||||
|
||||
public int type;
|
||||
|
||||
@ -25,8 +25,8 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
// SCHEDULING zoom sound so it lines up with when it meets the fork.
|
||||
var currentDspTime = AudioSettings.dspTime;
|
||||
var cond = Conductor.instance;
|
||||
var zoomStartTime = currentDspTime + (double)(cond.pitchedSecPerBeat * 2) - 0.317;
|
||||
Jukebox.PlayOneShotScheduledGame("forkLifter/zoomFast", (double)zoomStartTime);
|
||||
var zoomStartTime = currentDspTime + (cond.pitchedSecPerBeatAsDouble * 2) - 0.317;
|
||||
SoundByte.PlayOneShotScheduledGame("forkLifter/zoomFast", zoomStartTime);
|
||||
|
||||
GetComponentInChildren<SpriteRenderer>().sprite = game.peaSprites[type];
|
||||
|
||||
@ -91,7 +91,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
||||
|
||||
Jukebox.PlayOneShotGame("forkLifter/stab");
|
||||
SoundByte.PlayOneShotGame("forkLifter/stab");
|
||||
|
||||
ForkLifterPlayer.instance.currentPerfectPeasOnFork++;
|
||||
|
||||
@ -136,7 +136,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
||||
|
||||
Jukebox.PlayOneShot("miss");
|
||||
SoundByte.PlayOneShot("miss");
|
||||
|
||||
ForkLifterPlayer.instance.currentEarlyPeasOnFork++;
|
||||
|
||||
@ -167,7 +167,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
||||
|
||||
Jukebox.PlayOneShot("miss");
|
||||
SoundByte.PlayOneShot("miss");
|
||||
|
||||
ForkLifterPlayer.instance.currentLatePeasOnFork++;
|
||||
Destroy(this.gameObject);
|
||||
@ -198,7 +198,7 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||
|
||||
private void Miss(PlayerActionEvent caller)
|
||||
{
|
||||
Jukebox.PlayOneShot("forkLifter/disappointed");
|
||||
SoundByte.PlayOneShot("forkLifter/disappointed");
|
||||
BeatAction.New(game.gameObject, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(startBeat+ 2.45f, delegate {
|
||||
|
Reference in New Issue
Block a user