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

Update game.html

Browse files
Files changed (1) hide show
  1. game.html +3 -3
game.html CHANGED
@@ -158,12 +158,12 @@ function hitBomb (player, bomb)
158
  this.physics.pause();
159
  player.setTint(0xff0000);
160
  player.anims.play('turn');
161
- gameOver = true;
162
 
163
  var mainCamera = this.cameras.main
164
  mainCamera.shake(250);
165
- mainCamera.fadeOut(3000);
166
- sleep(2000).then(() => { this.scene.restart(); });
167
  }
168
  </script>
169
  <div>
 
158
  this.physics.pause();
159
  player.setTint(0xff0000);
160
  player.anims.play('turn');
161
+ //gameOver = true;
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>