diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 09:56:37 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 09:56:37 +0100 |
commit | a4576c3bab0901074c53209c141b2a767c60d38a (patch) | |
tree | b17563a92576d24108bd5b3e441db089332c9c2d /game/player/PlayerScript.cpp | |
parent | e7cebc43f567b0fa1701d953a9f25d5f527e89bb (diff) |
Improved Player speed and velocity
Diffstat (limited to 'game/player/PlayerScript.cpp')
-rw-r--r-- | game/player/PlayerScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp index 3b4cc5e..c4ed6a0 100644 --- a/game/player/PlayerScript.cpp +++ b/game/player/PlayerScript.cpp @@ -80,7 +80,7 @@ void PlayerScript::fixed_update(crepe::duration_t dt) { Rigidbody & rb = this->get_components_by_name<Rigidbody>("player").front(); if (this->get_key_state(Keycode::SPACE)) { - rb.add_force_linear(vec2(0, -PLAYER_GRAVITY_SCALE / 3)); + rb.add_force_linear(vec2(0, -PLAYER_GRAVITY_SCALE / 2.5)); if (prev_anim != 1) { for (Animator & anim : animators) { anim.active = true; |