added player history

balance: mod capacitor - gives 1% damage for every 7% energy (was 5.5%)
some fixes on community level detour
added a once every 7 second check to try to undo the crouch bug
  (I have no idea how to crouch bug is happening, so I can't even test this fix)

mod: slow light propagation - laser is divided into your past, and increase total damage by 200%
  let me know about balance (is this too strong or too weak)
This commit is contained in:
landgreen
2020-11-24 06:40:25 -08:00
parent 463bacc977
commit 313a9f861f
7 changed files with 319 additions and 128 deletions

View File

@@ -747,6 +747,19 @@ const game = {
fallCheck(mob);
fallCheck(body);
fallCheck(powerUp, true);
//check for double crouch
//crouch playerHead.position.y - player.position.y = 9.7 //positive
//standing playerHead.position.y - player.position.y = -30 //negative
if (!mech.crouch && ((playerHead.position.y - player.position.y) > 0)) {
// mech.undoCrouch()
Matter.Body.translate(playerHead, {
x: 0,
y: 40
});
}
// else if (mech.crouch && ((playerHead.position.y - player.position.y) < 0)) {}
}
}
},