From 0ba89eff9283d5f9f59fa763a19f4616f1c66d74 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 20 Dec 2024 12:57:17 +0100 Subject: finish moving game --- game/ForestSubScene.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'game/ForestSubScene.cpp') diff --git a/game/ForestSubScene.cpp b/game/ForestSubScene.cpp index 9be875d..810ef17 100644 --- a/game/ForestSubScene.cpp +++ b/game/ForestSubScene.cpp @@ -20,7 +20,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n this->add_background(scn, begin_x, unique_bg_name); GameObject begin = scn.new_object("forest_begin", "background", vec2(begin_x, 0)); - Asset begin_asset{"asset/jetpack_joyride/background/forest/forestFG_1_TVOS.png"}; + Asset begin_asset{"asset/background/forest/forestFG_1_TVOS.png"}; begin.add_component(begin_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 0, @@ -31,7 +31,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n this->add_background(scn, begin_x, unique_bg_name); GameObject middle_1 = scn.new_object("forest_middle", "background", vec2(begin_x, 0)); - Asset middle_1_asset{"asset/jetpack_joyride/background/forest/forestFG_3_TVOS.png"}; + Asset middle_1_asset{"asset/background/forest/forestFG_3_TVOS.png"}; middle_1.add_component(middle_1_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 2, @@ -42,7 +42,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n this->add_background(scn, begin_x, unique_bg_name); GameObject middle_2 = scn.new_object("forest_middle", "background", vec2(begin_x, 0)); - Asset middle_2_asset{"asset/jetpack_joyride/background/forest/forestFG_3_TVOS.png"}; + Asset middle_2_asset{"asset/background/forest/forestFG_3_TVOS.png"}; middle_2.add_component(middle_2_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 3, @@ -53,7 +53,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n this->add_background(scn, begin_x, unique_bg_name); GameObject end = scn.new_object("forest_end", "background", vec2(begin_x, 0)); - Asset end_asset{"asset/jetpack_joyride/background/forest/forestFG_2_TVOS.png"}; + Asset end_asset{"asset/background/forest/forestFG_2_TVOS.png"}; end.add_component(end_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 1, @@ -69,7 +69,7 @@ float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_n void ForestSubScene::add_background(Scene & scn, float begin_x, std::string name) { GameObject bg_1 = scn.new_object("forest_bg_1_" + name, "forest_background", vec2(begin_x, 0)); - Asset bg_1_asset{"asset/jetpack_joyride/background/forest/forestBG1_1_TVOS.png"}; + Asset bg_1_asset{"asset/background/forest/forestBG1_1_TVOS.png"}; bg_1.add_component(bg_1_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 2, @@ -77,14 +77,14 @@ void ForestSubScene::add_background(Scene & scn, float begin_x, std::string name }); GameObject bg_2 = scn.new_object("forest_bg_2_" + name, "forest_background", vec2(begin_x, 0)); - Asset bg_2_1_asset{"asset/jetpack_joyride/background/forest/forestBG2_1_TVOS.png"}; + Asset bg_2_1_asset{"asset/background/forest/forestBG2_1_TVOS.png"}; bg_2.add_component(bg_2_1_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 1, .size = vec2(0, 400), .position_offset = vec2(200, 0), }); - Asset bg_2_2_asset{"asset/jetpack_joyride/background/forest/forestBG2_2_TVOS.png"}; + Asset bg_2_2_asset{"asset/background/forest/forestBG2_2_TVOS.png"}; bg_2.add_component(bg_2_2_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 1, @@ -93,28 +93,28 @@ void ForestSubScene::add_background(Scene & scn, float begin_x, std::string name }); GameObject bg_3 = scn.new_object("forest_bg_3_" + name, "forest_background", vec2(begin_x, 0)); - Asset bg_3_1_asset{"asset/jetpack_joyride/background/forest/forestBG3_1_TVOS.png"}; + Asset bg_3_1_asset{"asset/background/forest/forestBG3_1_TVOS.png"}; bg_3.add_component(bg_3_1_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, .size = vec2(0, 200), .position_offset = vec2(300, 0), }); - Asset bg_3_2_asset{"asset/jetpack_joyride/background/forest/forestBG3_2_TVOS.png"}; + Asset bg_3_2_asset{"asset/background/forest/forestBG3_2_TVOS.png"}; bg_3.add_component(bg_3_2_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, .size = vec2(0, 200), .position_offset = vec2(100, 0), }); - Asset bg_3_3_asset{"asset/jetpack_joyride/background/forest/forestBG3_3_TVOS.png"}; + Asset bg_3_3_asset{"asset/background/forest/forestBG3_3_TVOS.png"}; bg_3.add_component(bg_3_3_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, .size = vec2(0, 200), .position_offset = vec2(-100, 0), }); - Asset bg_3_4_asset{"asset/jetpack_joyride/background/forest/forestBG3_4_TVOS.png"}; + Asset bg_3_4_asset{"asset/background/forest/forestBG3_4_TVOS.png"}; bg_3.add_component(bg_3_4_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, -- cgit v1.2.3