Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gericfo authored Sep 20, 2023
1 parent dc6fd47 commit a1f49be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -117,4 +117,4 @@ function displayButtons() {
WA.room.setTiles(tiles);
}

export {};
export {};

0 comments on commit a1f49be

Please sign in to comment.