perfect slow fall

IceIX is faster, but doesn't last as long
  effective range and damage should be about the same

slow fall while perfect diamagnetism is active

bug fixes
This commit is contained in:
landgreen
2022-09-20 18:03:12 -07:00
parent fbd56a2bca
commit 4553a5ee99
6 changed files with 59 additions and 48 deletions

View File

@@ -1929,6 +1929,15 @@ const m = {
m.holding();
m.throwBlock();
} else if (input.field) { //not hold but field button is pressed
//float while field is on
if (player.velocity.y > 1) {
player.force.y -= (tech.isBigField ? 0.87 : 0.7) * player.mass * simulation.g;
Matter.Body.setVelocity(player, { x: player.velocity.x, y: 0.98 * player.velocity.y }); //set velocity to cap, but keep the direction
}
if (m.energy > m.fieldRegen) m.energy -= m.fieldRegen
m.grabPowerUp();
m.lookForPickUp();