Made gravity better since lncvrt keeps complaining
This commit is contained in:
1 parent
a573d74bbd
commit
c0b309c451
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -8,9 +8,9 @@ public partial class Globals : Node {
|
||||
|
||||
public static float MovementSpeed = 800f;
|
||||
public static float DefaultMovementSpeed = MovementSpeed;
|
||||
public static float JumpHeight = -1000f;
|
||||
public static float JumpHeight = -1200f;
|
||||
public static float DefaultJumpHeight = JumpHeight;
|
||||
public static float Gravity = 2000f;
|
||||
public static float Gravity = 3000f;
|
||||
public static float DefaultGravity = JumpHeight;
|
||||
|
||||
public static string ActiveEffect = "none";
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ public partial class Player : Node2D {
|
||||
}
|
||||
}
|
||||
|
||||
if (true) {
|
||||
if (VelocityY < 600f) {
|
||||
VelocityY += Globals.Gravity * (float)delta;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user