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 {};