mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 16:47:39 +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:
@ -25,17 +25,17 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
|
||||
|
||||
public void Blip()
|
||||
{
|
||||
float c = Conductor.instance.songPositionInBeats;
|
||||
double c = Conductor.instance.songPositionInBeatsAsDouble;
|
||||
BeatAction.New(gameObject, new List<BeatAction.Action>() {
|
||||
new BeatAction.Action(MathF.Floor(c) + 0.5f, delegate {
|
||||
new BeatAction.Action(Math.Floor(c) + 0.5f, delegate {
|
||||
if (MrUpbeat.shouldBlip) {
|
||||
Jukebox.PlayOneShotGame("mrUpbeat/blip");
|
||||
SoundByte.PlayOneShotGame("mrUpbeat/blip");
|
||||
blipAnim.Play("Blip"+(blipSize+1), 0, 0);
|
||||
blipText.text = (blipSize == 4 && blipString != "") ? blipString : "";
|
||||
if (shouldGrow && blipSize < 4) blipSize++;
|
||||
}
|
||||
}),
|
||||
new BeatAction.Action(MathF.Floor(c) + 1f, delegate {
|
||||
new BeatAction.Action(Math.Floor(c) + 1f, delegate {
|
||||
Blip();
|
||||
}),
|
||||
});
|
||||
@ -52,7 +52,7 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
|
||||
|
||||
anim.DoScaledAnimationAsync("Step", 0.5f);
|
||||
letterAnim.DoScaledAnimationAsync(x ? "StepRight" : "StepLeft", 0.5f);
|
||||
Jukebox.PlayOneShotGame("mrUpbeat/step");
|
||||
SoundByte.PlayOneShotGame("mrUpbeat/step");
|
||||
}
|
||||
|
||||
public void Fall()
|
||||
@ -62,7 +62,7 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
|
||||
blipText.text = "";
|
||||
|
||||
anim.DoScaledAnimationAsync("Fall", 0.5f);
|
||||
Jukebox.PlayOneShot("miss");
|
||||
SoundByte.PlayOneShot("miss");
|
||||
shadows[0].SetActive(false);
|
||||
shadows[1].SetActive(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user