From 797c747e3cf70ef34264f9463486c2696e93cd7f Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Mon, 14 Mar 2022 23:12:50 +0100 Subject: [PATCH] feat: #fe don't wait for entrance --- frontend/src/js/fight_scene.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts index b6e0e64..137303f 100644 --- a/frontend/src/js/fight_scene.ts +++ b/frontend/src/js/fight_scene.ts @@ -151,7 +151,6 @@ export default class FightScene extends Phaser.Scene { duration: 2000, onComplete: () => { setAnimation(this.player, "player_idle"); - gameStart(this); }, }); @@ -160,6 +159,7 @@ export default class FightScene extends Phaser.Scene { ); this.scale.refresh(); initAndBindGuessPreview(this); + gameStart(this); } showMissMessage() { @@ -304,9 +304,7 @@ function submitTranscription(transcription: string, scene: FightScene) { } function gameStart(scene: any) { - setTimeout(() => { - dispatchEnemy(scene); - }, 200); + dispatchEnemy(scene); } function dispatchEnemy(scene: any) { -- GitLab