lower momentum needed to crouch on landing, laser-bot has less flicker
This commit is contained in:
@@ -199,7 +199,7 @@ const mech = {
|
||||
//sets a hard land where player stays in a crouch for a bit and can't jump
|
||||
//crouch is forced in keyMove() on ground section below
|
||||
const momentum = player.velocity.y * player.mass //player mass is 5 so this triggers at 20 down velocity, unless the player is holding something
|
||||
if (momentum > 100) {
|
||||
if (momentum > 120) {
|
||||
this.doCrouch();
|
||||
this.yOff = this.yOffWhen.jump;
|
||||
this.hardLandCD = mech.cycle + Math.min(momentum / 6 - 6, 40)
|
||||
|
||||
Reference in New Issue
Block a user