Movement Physics adjustments

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
unknown 3 years ago
parent 3310a549c2
commit 65836b1225
  1. 4
      src/sig/objects/Player.java

@ -14,7 +14,7 @@ import sig.objects.actor.State;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
public class Player extends AnimatedObject{ public class Player extends AnimatedObject{
final double GRAVITY = 890; final double GRAVITY = 1300;
final double NORMAL_FRICTION = 6400; final double NORMAL_FRICTION = 6400;
final boolean LEFT = false; final boolean LEFT = false;
final boolean RIGHT = true; final boolean RIGHT = true;
@ -30,7 +30,7 @@ public class Player extends AnimatedObject{
double horizontal_drag = 2000; double horizontal_drag = 2000;
double horizontal_friction = NORMAL_FRICTION; double horizontal_friction = NORMAL_FRICTION;
double horizontal_air_drag = 600; double horizontal_air_drag = 800;
double horizontal_air_friction = 180; double horizontal_air_friction = 180;
double jump_velocity = -300; double jump_velocity = -300;

Loading…
Cancel
Save