aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerEndScript.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2024-12-29 12:29:40 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2024-12-29 12:29:40 +0100
commite7cebc43f567b0fa1701d953a9f25d5f527e89bb (patch)
treeb53e2f18c506f0f2771e236fa6830d2e0af59622 /game/player/PlayerEndScript.cpp
parentbc66ba7754dec9d6f907bc69730f211ae2215906 (diff)
Added Player params to Config
Diffstat (limited to 'game/player/PlayerEndScript.cpp')
-rw-r--r--game/player/PlayerEndScript.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp
index 80d3011..8833c28 100644
--- a/game/player/PlayerEndScript.cpp
+++ b/game/player/PlayerEndScript.cpp
@@ -1,5 +1,7 @@
#include "PlayerEndScript.h"
+#include "../Config.h"
+
#include <crepe/api/Animator.h>
#include <crepe/api/BoxCollider.h>
#include <crepe/api/CircleCollider.h>
@@ -50,7 +52,7 @@ bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) {
} else if (jump == 2) {
rb_player.data.angular_velocity = 0;
rb_player.data.elasticity_coefficient = 0;
- rb_player.data.linear_velocity = vec2(100, 0);
+ rb_player.data.linear_velocity = vec2(PLAYER_SPEED, 0);
rb_player.data.linear_velocity_coefficient = vec2(0.5, 0.5);
rb_camera.data.linear_velocity_coefficient = vec2(0.5, 0.5);
for (Animator & anim : anim_player) {