aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-06 10:14:58 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-06 10:14:58 +0100
commitb31934cc6867be10e986a4bd4d0ab81dc91d56ec (patch)
tree7649286b2f773b517f9de9c2a220fbc122d5548d /game/GameScene.cpp
parentdb12396d0033df612d1cd1cd161b716d4c508fa7 (diff)
Paralax stops when player stops
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index 821191d..a8fcb47 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -100,7 +100,7 @@ void GameScene::load_scene() {
.collision_layer = COLL_LAY_LASER,
});
laser.add_component<BoxCollider>(vec2(100, 100));
- GameObject missile = new_object("missile", "missile", vec2(3000, 0));
+ GameObject missile = new_object("missile", "missile", vec2(4000, 0));
Asset missile_asset {"asset/obstacles/missile/missile.png"};
Sprite & missile_sprite = missile.add_component<Sprite>(
missile_asset,