Omnibus commited on
Commit
499c565
1 Parent(s): 8cf0aa9

Update game.html

Browse files
Files changed (1) hide show
  1. game.html +2 -0
game.html CHANGED
@@ -112,6 +112,8 @@ function update ()
112
  { var mainCamera = this.cameras.main
113
  mainCamera.shake(250);
114
  mainCamera.fadeOut(3000);
 
 
115
  this.scene.restart();
116
 
117
  }
 
112
  { var mainCamera = this.cameras.main
113
  mainCamera.shake(250);
114
  mainCamera.fadeOut(3000);
115
+ this.registry.destroy();
116
+ this.events.off();
117
  this.scene.restart();
118
 
119
  }