aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.cpp
diff options
context:
space:
mode:
authorloek <32883851+lonkaars@users.noreply.github.com>2025-01-10 09:10:42 +0100
committerGitHub <noreply@github.com>2025-01-10 09:10:42 +0100
commitd20b25828b53af170a6534263e8de114e7fac121 (patch)
treeb1965b053d17405f12ce5043577237880df0f205 /game/player/PlayerSubScene.cpp
parent8b32dbc33c434f84b4aab98819147c3b8416ff69 (diff)
parentfbf1d0a0f75ba6a7caced72d9bb0a7f66763122b (diff)
Merge pull request #124 from lonkaars/loek/game
improve player responsiveness
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r--game/player/PlayerSubScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp
index c4d689a..371bc42 100644
--- a/game/player/PlayerSubScene.cpp
+++ b/game/player/PlayerSubScene.cpp
@@ -145,7 +145,7 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
);
player.add_component<BoxCollider>(vec2(40, 60), vec2(-20, 0));
player.add_component<Rigidbody>(Rigidbody::Data {
- .gravity_scale = PLAYER_GRAVITY_SCALE,
+ .gravity_scale = 1.0,
.body_type = Rigidbody::BodyType::DYNAMIC,
.linear_velocity = vec2(PLAYER_SPEED * 0.02, 0),
.collision_layers