Fixed jumping hopefully

This commit is contained in:
Puppet committed 2025-10-12 20:08:55 -07:00
1 parent b297f07ed2
commit a573d74bbd
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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";
+3 -3
View File
@@ -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;