Update game.html
Browse files
game.html
CHANGED
|
@@ -161,11 +161,11 @@ function hitBomb (player, bomb)
|
|
| 161 |
gameOver = true;
|
| 162 |
|
| 163 |
var mainCamera = this.cameras.main
|
| 164 |
-
mainCamera.shake(250)
|
| 165 |
-
mainCamera.fadeOut(6000)
|
| 166 |
-
mainCamera.on('camerafadeoutcomplete', function () {
|
| 167 |
-
|
| 168 |
-
|
| 169 |
}
|
| 170 |
</script>
|
| 171 |
<div>
|
|
|
|
| 161 |
gameOver = true;
|
| 162 |
|
| 163 |
var mainCamera = this.cameras.main
|
| 164 |
+
mainCamera.shake(250);
|
| 165 |
+
mainCamera.fadeOut(6000);
|
| 166 |
+
///mainCamera.on('camerafadeoutcomplete', function () {
|
| 167 |
+
this.scene.restart();
|
| 168 |
+
|
| 169 |
}
|
| 170 |
</script>
|
| 171 |
<div>
|