mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix marble sounds lmao
This commit is contained in:
parent
b60a80b10d
commit
b68a6e036b
2 changed files with 12 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue