Update game.html
Browse files
game.html
CHANGED
@@ -160,7 +160,7 @@ function hitBomb (player, bomb)
|
|
160 |
player.anims.play('turn');
|
161 |
gameOver = true;
|
162 |
this.registry.destroy(); // destroy registry
|
163 |
-
this.events.off(); // disable all active events
|
164 |
this.scene.restart(); // restart current scene
|
165 |
}
|
166 |
</script>
|
|
|
160 |
player.anims.play('turn');
|
161 |
gameOver = true;
|
162 |
this.registry.destroy(); // destroy registry
|
163 |
+
//this.events.off(); // disable all active events
|
164 |
this.scene.restart(); // restart current scene
|
165 |
}
|
166 |
</script>
|