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 Jun 30, 2024
1 parent 8b5ed4b commit 4981846
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions res/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ window.addEventListener("keydown", (event) => {
enterFunction();
} else if ((event.key == "e" || event.key == "E") && player1.doorCol && player2.doorCol && !entered && finished[helpNum] != 2 && finalDoorUnlocked && inGame && canEnter && helpNumbers[0] == helpNumbers[1] && (playingSteamPunk && helpNum <= 13 || !playingSteamPunk)) {
entered = true;
enterFunction();
enterFunction();
}
})

Expand Down Expand Up @@ -1675,17 +1675,18 @@ const backToLobby = () => {
yGhost = 20000;
}
spawnGhostCords();
spawnMovingPlatformCords = () => {
xMovingPlatform = 600;
yMovingPlatform = 282;
}
spawnMovingPlatformCords();
spawnSawCords = () => {
xSaw = 10000;
ySaw = 10000;
if(playingSteamPunk){
spawnMovingPlatformCords = () => {
xMovingPlatform = 600;
yMovingPlatform = 282;
}
spawnMovingPlatformCords();
spawnSawCords = () => {
xSaw = 10000;
ySaw = 10000;
}
spawnSawCords();
}
spawnSawCords();

if(!playingSteamPunk){
if(helpNum == 0){ // Go to lobby From Levels 1 - 15
player1.x = 120;
Expand Down

0 comments on commit 4981846

Please sign in to comment.