Update game.html
Browse files
game.html
CHANGED
@@ -166,10 +166,10 @@ function hitBomb (player, bomb)
|
|
166 |
mainCamera.once('camerafadeoutcomplete', function () {
|
167 |
this.registry.destroy();
|
168 |
this.events.off();
|
169 |
-
|
170 |
});
|
171 |
|
172 |
-
|
173 |
|
174 |
}
|
175 |
</script>
|
|
|
166 |
mainCamera.once('camerafadeoutcomplete', function () {
|
167 |
this.registry.destroy();
|
168 |
this.events.off();
|
169 |
+
this.input.on('pointerdown', () => this.scene.restart());
|
170 |
});
|
171 |
|
172 |
+
|
173 |
|
174 |
}
|
175 |
</script>
|