Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipBuresh authored Mar 24, 2024
1 parent 762b6df commit 064c943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/js/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ const drawing = () => {
}
}
//Chain Door
if(doorTimeout == true){
if(doorTimeout){
nowDoor = Date.now();
deltaDoor = nowDoor - thenDoor;
if (deltaDoor > 100) {
Expand Down
3 changes: 1 addition & 2 deletions res/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ const objectsCollision = () => {
x + width >= platformX + 24 &&
x <= platformX + 40
) {
if(!backToLobbyEntered){
if(!backToLobbyEntered && frameDoor < 1){
canEnter = false; //Now you cant spam "e"
sfx.src = "./res/sfx/completed.mp3";
sfx.play();
Expand All @@ -1321,7 +1321,6 @@ const objectsCollision = () => {
}
backToLobby();
backToLobbyEntered = true;

localStorage.setItem('finished_' + helpNum, finished[helpNum]);
localStorage.setItem('unlocked_' + helpNum, finished[helpNum + 1]);
}
Expand Down

0 comments on commit 064c943

Please sign in to comment.