diff --git a/Scripts/Globals.cs b/Scripts/Globals.cs index 06cebee..c0cf801 100644 --- a/Scripts/Globals.cs +++ b/Scripts/Globals.cs @@ -8,9 +8,9 @@ public partial class Globals : Node { public static float MovementSpeed = 800f; public static float DefaultMovementSpeed = MovementSpeed; - public static float JumpHeight = -0.5f; + public static float JumpHeight = -1000f; public static float DefaultJumpHeight = JumpHeight; - public static float Gravity = 0.0005f; + public static float Gravity = 2000f; public static float DefaultGravity = JumpHeight; public static string ActiveEffect = "none"; diff --git a/Scripts/Player.cs b/Scripts/Player.cs index 44647ae..e229fe5 100644 --- a/Scripts/Player.cs +++ b/Scripts/Player.cs @@ -34,11 +34,11 @@ public partial class Player : Node2D { } } - if (VelocityY < 0.3f) { - VelocityY += Globals.Gravity; + if (true) { + VelocityY += Globals.Gravity * (float)delta; } - Pos.Y += VelocityY; + Pos.Y += VelocityY * (float)delta; if (Pos.Y > 976) { Pos.Y = 976;