Spaces:
Runtime error
Runtime error
Update game.html
Browse files
game.html
CHANGED
|
@@ -162,8 +162,9 @@ function hitBomb (player, bomb)
|
|
| 162 |
|
| 163 |
var mainCamera = this.cameras.main
|
| 164 |
mainCamera.shake(250)
|
|
|
|
| 165 |
mainCamera.on('camerafadeoutcomplete', function () {
|
| 166 |
-
this.scene.
|
| 167 |
})
|
| 168 |
}
|
| 169 |
</script>
|
|
|
|
| 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>
|