aboutsummaryrefslogtreecommitdiff
path: root/game/background/StartSubScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2024-12-21 11:52:48 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2024-12-21 11:52:48 +0100
commite72dc913e7b35bcd2f6ba8107ea46e383afd25e1 (patch)
treeaf3a5303617e0b94e8163af0285b8834b2c6a860 /game/background/StartSubScene.cpp
parent799a376aeecd9bdc712e89324cbe9153206839c9 (diff)
Added more to Config.h
Diffstat (limited to 'game/background/StartSubScene.cpp')
-rw-r--r--game/background/StartSubScene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/background/StartSubScene.cpp b/game/background/StartSubScene.cpp
index 547b00d..c769a5f 100644
--- a/game/background/StartSubScene.cpp
+++ b/game/background/StartSubScene.cpp
@@ -22,7 +22,7 @@ float StartSubScene::create(Scene & scn, float begin_x) {
begin.add_component<Sprite>(begin_asset, Sprite::Data{
.sorting_in_layer = SORT_IN_LAY_BACKGROUND,
.order_in_layer = 0,
- .size = vec2(0, 800),
+ .size = vec2(0, GAME_HEIGHT),
});
GameObject hole = scn.new_object("start_hole", "background", vec2(begin_x - 250, 140));
Asset hole_asset{"asset/background/start/titleWallHole.png"};
@@ -44,7 +44,7 @@ float StartSubScene::create(Scene & scn, float begin_x) {
end.add_component<Sprite>(end_asset, Sprite::Data{
.sorting_in_layer = SORT_IN_LAY_BACKGROUND,
.order_in_layer = 1,
- .size = vec2(0, 800),
+ .size = vec2(0, GAME_HEIGHT),
});
begin_x += 100;