From a1f49bec2a45e1f5b3c149d054071d221a4dd4ca Mon Sep 17 00:00:00 2001 From: GericFo <52211274+gericfo@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:03:49 +0200 Subject: [PATCH] Update main.ts --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 438d516f..19f7c205 100644 --- a/src/main.ts +++ b/src/main.ts @@ -93,14 +93,14 @@ function updateMap() { displayButtons(); - if (nbRedPressed >= 2) { + if (nbRedPressed >= 1) { WA.room.showLayer('doors/red_door_opened'); WA.room.hideLayer('doors/red_door_closed'); } else { WA.room.hideLayer('doors/red_door_opened'); WA.room.showLayer('doors/red_door_closed'); } - if (nbBluePressed >= 2) { + if (nbBluePressed >= 1) { WA.room.showLayer('doors/blue_door_opened'); WA.room.hideLayer('doors/blue_door_closed'); } else { @@ -117,4 +117,4 @@ function displayButtons() { WA.room.setTiles(tiles); } -export {}; \ No newline at end of file +export {};