diff --git a/ff0fsum4zx.js b/ff0fsum4zx.js index d2c5637..5f7addb 100644 --- a/ff0fsum4zx.js +++ b/ff0fsum4zx.js @@ -394,15 +394,25 @@ R3.CustomCode.prototype.move = function(data) { this.footballPlayer.instance.translateY(this.playerY); this.football.instance.position.y = this.ballY; -this.mouseMove.entityLoaded = this; -this.touchMove.entityLoaded = this; -this.beforeRender.entityLoaded = this; -R3.Event.Emit( - R3.Event.PLAY_AUDIO, - { - name : 'Audio - Crowd' + +R3.Event.Subscribe( + R3.Event.GAME_START, + function() { + + R3.Event.Emit( + R3.Event.PLAY_AUDIO, + { + name : 'Audio - Crowd' + } + ); + + this.mouseMove.entityLoaded = this; + this.touchMove.entityLoaded = this; + this.beforeRender.entityLoaded = this; } ); +R3.Event.Emit(R3.Event.GAME_LOADED); + //@ sourceURL=entityLoaded.js