aboutsummaryrefslogtreecommitdiff
path: root/game/background/ForestSubScene.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/ForestSubScene.cpp
parent799a376aeecd9bdc712e89324cbe9153206839c9 (diff)
Added more to Config.h
Diffstat (limited to 'game/background/ForestSubScene.cpp')
-rw-r--r--game/background/ForestSubScene.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/game/background/ForestSubScene.cpp b/game/background/ForestSubScene.cpp
index f0848f2..7eac53a 100644
--- a/game/background/ForestSubScene.cpp
+++ b/game/background/ForestSubScene.cpp
@@ -26,7 +26,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n
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),
});
begin_x += 800;
@@ -38,7 +38,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n
Sprite::Data{
.sorting_in_layer = SORT_IN_LAY_BACKGROUND,
.order_in_layer = 2,
- .size = vec2(0, 800),
+ .size = vec2(0, GAME_HEIGHT),
});
begin_x += 800;
@@ -50,7 +50,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n
Sprite::Data{
.sorting_in_layer = SORT_IN_LAY_BACKGROUND,
.order_in_layer = 3,
- .size = vec2(0, 800),
+ .size = vec2(0, GAME_HEIGHT),
});
begin_x += 800;
@@ -61,7 +61,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n
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 += 600;