From cd69fcce59532b1fd21ce1ac566d13ad34bd526b Mon Sep 17 00:00:00 2001 From: Max-001 Date: Sat, 11 Jan 2025 10:35:38 +0100 Subject: Fixed bug Wouter --- game/StartGameScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/StartGameScript.cpp') 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("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("player").front(); player_script.active = true; -- cgit v1.2.3