Update game.html
Browse files
game.html
CHANGED
@@ -160,8 +160,8 @@ function hitBomb (player, bomb)
|
|
160 |
player.anims.play('turn');
|
161 |
gameOver = true;
|
162 |
|
163 |
-
var
|
164 |
-
|
165 |
mainCamera.on('camerafadeoutcomplete', function () {
|
166 |
this.scene.start('GameOver');
|
167 |
})
|
|
|
160 |
player.anims.play('turn');
|
161 |
gameOver = true;
|
162 |
|
163 |
+
var mainCamera = this.cameras.main
|
164 |
+
mainCamera.shake(250)
|
165 |
mainCamera.on('camerafadeoutcomplete', function () {
|
166 |
this.scene.start('GameOver');
|
167 |
})
|