Update game.html
Browse files
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>
|