diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 12:47:26 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 12:47:26 +0100 |
commit | 3297acbb3687d8a98a11a1ca26a766db3d85501b (patch) | |
tree | 764af462b811a008d98bcc8814c886a0c8f604d1 | |
parent | 9998ee0964b2eae80078987b1df9a9ddd6ccf233 (diff) | |
parent | 77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff) |
Merge branch 'max/game' of github.com:lonkaars/crepe into jaro/main-menu
-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 c4ed6a0..472d7c8 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 / 2.5)); + rb.add_force_linear(vec2(0, -PLAYER_GRAVITY_SCALE / 2.5) * dt.count() / 0.02); if (prev_anim != 1) { for (Animator & anim : animators) { anim.active = true; |