Omnibus commited on
Commit
7fe2228
1 Parent(s): 5aa3270

Update game.html

Browse files
Files changed (1) hide show
  1. game.html +3 -3
game.html CHANGED
@@ -163,11 +163,11 @@ function hitBomb (player, bomb)
163
  var mainCamera = this.cameras.main
164
  mainCamera.shake(250);
165
  mainCamera.fadeOut(3000);
166
- mainCamera.once('camerafadeoutcomplete', function () {
 
167
  //this.registry.destroy();
168
  //this.events.off();
169
- this.input.on('pointerdown', () => this.scene.restart());
170
- });
171
 
172
 
173
 
 
163
  var mainCamera = this.cameras.main
164
  mainCamera.shake(250);
165
  mainCamera.fadeOut(3000);
166
+ mainCamera.once('camerafadeoutcomplete', this.input.on('pointerdown', () => this.scene.restart()));
167
+
168
  //this.registry.destroy();
169
  //this.events.off();
170
+
 
171
 
172
 
173