Spaces:
Runtime error
Runtime error
Update game.html
Browse files
game.html
CHANGED
|
@@ -163,11 +163,11 @@ function hitBomb (player, bomb)
|
|
| 163 |
var mainCamera = this.cameras.main
|
| 164 |
mainCamera.shake(250);
|
| 165 |
mainCamera.fadeOut(3000);
|
| 166 |
-
mainCamera.once('camerafadeoutcomplete',
|
|
|
|
| 167 |
//this.registry.destroy();
|
| 168 |
//this.events.off();
|
| 169 |
-
|
| 170 |
-
});
|
| 171 |
|
| 172 |
|
| 173 |
|
|
|
|
| 163 |
var mainCamera = this.cameras.main
|
| 164 |
mainCamera.shake(250);
|
| 165 |
mainCamera.fadeOut(3000);
|
| 166 |
+
mainCamera.once('camerafadeoutcomplete', this.input.on('pointerdown', () => this.scene.restart()));
|
| 167 |
+
|
| 168 |
//this.registry.destroy();
|
| 169 |
//this.events.off();
|
| 170 |
+
|
|
|
|
| 171 |
|
| 172 |
|
| 173 |
|