diff options
author | Wboerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-11 11:50:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-11 11:50:18 +0100 |
commit | b4f5c3aed5c72dfb9ba9352c573691622b31d858 (patch) | |
tree | 7229298f9a377d6b56a1fcb497f3f32095b06b6e /game/StartGameScript.cpp | |
parent | ba0db2e49ff1b5c3e952c00bbc3f31176397f6b6 (diff) | |
parent | a57aa66f95c85e427b7ae51cadad4e4388d1a802 (diff) |
Merge pull request #132 from lonkaars/max/game2
Bug fixes
Diffstat (limited to 'game/StartGameScript.cpp')
-rw-r--r-- | game/StartGameScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/StartGameScript.cpp b/game/StartGameScript.cpp index 48055af..6d47e65 100644 --- a/game/StartGameScript.cpp +++ b/game/StartGameScript.cpp @@ -64,7 +64,7 @@ void StartGameScript::fixed_update(crepe::duration_t dt) { // Start camera movement, enable player jumping and disable this script if (player_transform.position.x > 500) { Rigidbody & rb = this->get_components_by_name<Rigidbody>("camera").front(); - rb.data.linear_velocity = vec2(PLAYER_SPEED * dt.count(), 0); + rb.data.linear_velocity = vec2(PLAYER_SPEED * 0.02, 0); BehaviorScript & player_script = this->get_components_by_name<BehaviorScript>("player").front(); player_script.active = true; |