aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.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/PlayerSubScene.cpp
parentbc66ba7754dec9d6f907bc69730f211ae2215906 (diff)
Added Player params to Config
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r--game/player/PlayerSubScene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp
index 91ae882..7e78e82 100644
--- a/game/player/PlayerSubScene.cpp
+++ b/game/player/PlayerSubScene.cpp
@@ -141,9 +141,9 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
);
player.add_component<BoxCollider>(vec2(40, 60), vec2(-20, 0));
player.add_component<Rigidbody>(Rigidbody::Data {
- .gravity_scale = 20,
+ .gravity_scale = PLAYER_GRAVITY_SCALE,
.body_type = Rigidbody::BodyType::DYNAMIC,
- .linear_velocity = vec2(100, 0),
+ .linear_velocity = vec2(PLAYER_SPEED, 0),
.collision_layers
= {COLL_LAY_BOT_TOP, COLL_LAY_ZAPPER, COLL_LAY_LASER, COLL_LAY_MISSILE},
.collision_layer = COLL_LAY_PLAYER,