mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-03-03 02:21:02 +00:00
fix ui scaling and alarm sound
This commit is contained in:
parent
d376a81ea3
commit
5058b05953
1 changed files with 5 additions and 0 deletions
|
|
@ -1309,11 +1309,16 @@ class MarbleWorld extends Scheduler {
|
|||
if (timeTravelSound == null) {
|
||||
var ttsnd = ResourceLoader.getResource("data/sound/timetravelactive.wav", ResourceLoader.getAudio, this.soundResources);
|
||||
timeTravelSound = AudioManager.playSound(ttsnd, null, true);
|
||||
|
||||
if (alarmSound != null)
|
||||
alarmSound.pause = true;
|
||||
}
|
||||
} else {
|
||||
if (timeTravelSound != null) {
|
||||
timeTravelSound.stop();
|
||||
timeTravelSound = null;
|
||||
if (alarmSound != null)
|
||||
alarmSound.pause = false;
|
||||
}
|
||||
if (this.timeState.currentAttemptTime >= 3.5) {
|
||||
this.timeState.gameplayClock += dt;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue