fix last commit

This commit is contained in:
2023-06-07 10:00:28 -06:00
parent 3964a0ebdf
commit 0cd821fa18
2 changed files with 3 additions and 1 deletions

View File

@@ -450,6 +450,7 @@
(when superText (FlxG.state.remove superText true)))
(savedVar :Float soundVolume 1.0)
(savedVar :Float masterVolume 1.0)
(prop :Array<FlxSound> currentSounds [])
(prop :Map<FlxSound,Array<Float>> currentSoundVolumes (new Map))
@@ -560,7 +561,7 @@
(-= prop.y (- propBottom FlxG.height)))))
// Otherwise, let the director scale props
(true
(let [propKey prop.graphic.assetsKey
(let [propKey (_propKey prop)
:Float scale .value (flxMovie.propScales.get propKey)]
(unless (flxMovie.propsInScene.exists flxMovie.sceneKey)
(dictSet flxMovie.propsInScene flxMovie.sceneKey []))

View File

@@ -144,6 +144,7 @@
(preload
(set FlxDirector.anonProps 0)
(set FlxG.sound.volume FlxDirector.masterVolume)
(unless uiCamera
(set uiCamera (new flixel.FlxCamera))
(set uiCamera.bgColor FlxColor.TRANSPARENT)