Update game.html
Browse files
game.html
CHANGED
@@ -112,6 +112,8 @@ function update ()
|
|
112 |
{ var mainCamera = this.cameras.main
|
113 |
mainCamera.shake(250);
|
114 |
mainCamera.fadeOut(3000);
|
|
|
|
|
115 |
this.scene.restart();
|
116 |
|
117 |
}
|
|
|
112 |
{ var mainCamera = this.cameras.main
|
113 |
mainCamera.shake(250);
|
114 |
mainCamera.fadeOut(3000);
|
115 |
+
this.registry.destroy();
|
116 |
+
this.events.off();
|
117 |
this.scene.restart();
|
118 |
|
119 |
}
|