fix marble sounds lmao

This commit is contained in:
RandomityGuy 2023-07-17 01:52:36 +05:30
parent b60a80b10d
commit b68a6e036b
2 changed files with 12 additions and 2 deletions

View file

@ -39,8 +39,6 @@ class Main extends hxd.App {
override function init() {
super.init();
hxd.Timer.smoothFactor = 0;
s3d.renderer = new Renderer();
#if debug
s3d.checkPasses = false;

View file

@ -2117,4 +2117,16 @@ class Marble extends GameObject {
marbledts.scale(this._prevRadius / 0.675);
}
}
override function dispose() {
if (this.rollSound != null)
this.rollSound.stop();
if (this.rollMegaSound != null)
this.rollMegaSound.stop();
if (this.slipSound != null)
this.slipSound.stop();
if (this.helicopterSound != null)
this.helicopterSound.stop();
super.dispose();
}
}