Omnibus commited on
Commit
f0a5822
1 Parent(s): 011c9e6

Update game.html

Browse files
Files changed (1) hide show
  1. game.html +3 -2
game.html CHANGED
@@ -162,8 +162,9 @@ function hitBomb (player, bomb)
162
 
163
  var mainCamera = this.cameras.main
164
  mainCamera.shake(250);
165
- mainCamera.fadeOut(3000).then(() => { this.scene.restart(); });
166
- ///sleep(2000).then(() => { this.scene.restart(); });
 
167
  }
168
  </script>
169
  <div>
 
162
 
163
  var mainCamera = this.cameras.main
164
  mainCamera.shake(250);
165
+ mainCamera.fadeOut(3000);
166
+ sleep(2000);
167
+ this.scene.restart();
168
  }
169
  </script>
170
  <div>