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:
13
js/game.js
13
js/game.js
@@ -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)) {}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user