pause menu on selection

you can see your build while in the power up selection menu
balance - metamaterial cloaking field gives 111% more damage (up from 66%)

mod: Newton's 1st law - harm reduction when moving fast (thanks NoHaxJustPi)
mod: Newton's 2nd law - damage increase while moving fast
This commit is contained in:
landgreen
2020-11-25 05:00:09 -08:00
parent 313a9f861f
commit 0c319d3049
7 changed files with 82 additions and 49 deletions

View File

@@ -33,6 +33,7 @@ const powerUps = {
}
game.paused = true;
game.isChoosing = true; //stops p from un pausing on key down
build.pauseGrid()
},
endDraft() {
if (mod.manyWorlds && powerUps.reroll.rerolls < 1) {
@@ -42,6 +43,7 @@ const powerUps = {
document.getElementById("choose-background").style.display = "none"
document.body.style.cursor = "none";
document.body.style.overflow = "hidden"
build.unPauseGrid()
game.paused = false;
game.isChoosing = false; //stops p from un pausing on key down
mech.immuneCycle = mech.cycle + 60; //player is immune to collision damage for 30 cycles