diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-11 10:35:38 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-11 10:35:38 +0100 |
commit | cd69fcce59532b1fd21ce1ac566d13ad34bd526b (patch) | |
tree | 3bdbf8b876eaa89e2ec528388e2d0d9685568ad7 /game/StartGameScript.cpp | |
parent | ba0db2e49ff1b5c3e952c00bbc3f31176397f6b6 (diff) |
Fixed bug Wouter
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; |