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/AquariumSubScene.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'game/AquariumSubScene.cpp') diff --git a/game/AquariumSubScene.cpp b/game/AquariumSubScene.cpp index 4f13acf..f4b20f6 100644 --- a/game/AquariumSubScene.cpp +++ b/game/AquariumSubScene.cpp @@ -15,7 +15,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_begin = scn.new_object("aquarium_begin", "background", vec2(begin_x, 0)); Asset aquarium_begin_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_1_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_1_TVOS.png"}; aquarium_begin.add_component(aquarium_begin_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 0, @@ -26,7 +26,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_middle_1 = scn.new_object("aquarium_middle", "background", vec2(begin_x, 0)); Asset aquarium_middle_1_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_3_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_3_TVOS.png"}; aquarium_middle_1.add_component(aquarium_middle_1_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 2, @@ -39,7 +39,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_middle_2 = scn.new_object("aquarium_middle", "background", vec2(begin_x, 0)); Asset aquarium_middle_2_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_3_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_3_TVOS.png"}; aquarium_middle_2.add_component(aquarium_middle_2_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 3, @@ -50,7 +50,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_middle_3 = scn.new_object("aquarium_middle", "background", vec2(begin_x, 0)); Asset aquarium_middle_3_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_3_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_3_TVOS.png"}; aquarium_middle_3.add_component(aquarium_middle_3_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 4, @@ -63,7 +63,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_middle_4 = scn.new_object("aquarium_middle", "background", vec2(begin_x, 0)); Asset aquarium_middle_4_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_3_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_3_TVOS.png"}; aquarium_middle_4.add_component(aquarium_middle_4_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 5, @@ -75,7 +75,7 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { GameObject aquarium_end = scn.new_object("aquarium_end", "background", vec2(begin_x, 0)); Asset aquarium_end_asset{ - "asset/jetpack_joyride/background/aquarium/glassTubeFG_2_TVOS.png"}; + "asset/background/aquarium/glassTubeFG_2_TVOS.png"}; aquarium_end.add_component(aquarium_end_asset, Sprite::Data{ .sorting_in_layer = 4, .order_in_layer = 1, @@ -88,14 +88,14 @@ float AquariumSubScene::create(Scene & scn, float begin_x) { void AquariumSubScene::add_background(Scene & scn, float begin_x) { GameObject bg_1 = scn.new_object("aquarium_bg_1", "aquarium_background", vec2(begin_x, 0)); - Asset bg_1_1_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG1_1_TVOS.png"}; + Asset bg_1_1_asset{"asset/background/aquarium/AquariumBG1_1_TVOS.png"}; bg_1.add_component(bg_1_1_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 2, .size = vec2(0, 400), .position_offset = vec2(-200, 100), }); - Asset bg_1_2_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG1_2_TVOS.png"}; + Asset bg_1_2_asset{"asset/background/aquarium/AquariumBG1_2_TVOS.png"}; bg_1.add_component(bg_1_2_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 2, @@ -103,14 +103,14 @@ void AquariumSubScene::add_background(Scene & scn, float begin_x) { .position_offset = vec2(200, 100), }); GameObject bg_2 = scn.new_object("aquarium_bg_2", "aquarium_background", vec2(begin_x, 0)); - Asset bg_2_1_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG2_1_TVOS.png"}; + Asset bg_2_1_asset{"asset/background/aquarium/AquariumBG2_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, -50), }); - Asset bg_2_2_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG2_2_TVOS.png"}; + Asset bg_2_2_asset{"asset/background/aquarium/AquariumBG2_2_TVOS.png"}; bg_2.add_component(bg_2_2_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 1, @@ -118,14 +118,14 @@ void AquariumSubScene::add_background(Scene & scn, float begin_x) { .position_offset = vec2(-200, -50), }); GameObject bg_3 = scn.new_object("aquarium_bg_3", "aquarium_background", vec2(begin_x, 0)); - Asset bg_3_1_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG3_1_TVOS.png"}; + Asset bg_3_1_asset{"asset/background/aquarium/AquariumBG3_1_TVOS.png"}; bg_3.add_component(bg_3_1_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, .size = vec2(0, 400), .position_offset = vec2(200, -200), }); - Asset bg_3_2_asset{"asset/jetpack_joyride/background/aquarium/AquariumBG3_2_TVOS.png"}; + Asset bg_3_2_asset{"asset/background/aquarium/AquariumBG3_2_TVOS.png"}; bg_3.add_component(bg_3_2_asset, Sprite::Data{ .sorting_in_layer = 3, .order_in_layer = 0, -- cgit v1.2.3