diff options
| author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 | 
|---|---|---|
| committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 | 
| commit | ceb41b7ae7e2734af954364b319fc0b6f2a86c2f (patch) | |
| tree | f7544f5f68236be02eb96a7d381bce9ad41845dc /game/StartGameScript.cpp | |
| parent | e9cba1baee564d835b8a3473a9cb146825f56732 (diff) | |
| parent | 77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff) | |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
Diffstat (limited to 'game/StartGameScript.cpp')
| -rw-r--r-- | game/StartGameScript.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/game/StartGameScript.cpp b/game/StartGameScript.cpp index 50ba86c..c786eb4 100644 --- a/game/StartGameScript.cpp +++ b/game/StartGameScript.cpp @@ -1,4 +1,5 @@  #include "StartGameScript.h" +#include "Config.h"  #include <crepe/api/Animator.h>  #include <crepe/api/ParticleEmitter.h> @@ -50,7 +51,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(100, 0); +		rb.data.linear_velocity = vec2(PLAYER_SPEED * dt.count(), 0);  		BehaviorScript & player_script  			= this->get_components_by_name<BehaviorScript>("player").front();  		player_script.active = true; |