diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-07 16:22:18 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-07 16:22:18 +0100 |
commit | 1a4dcd898138e6f1de5a8fbb6f0388f39b338189 (patch) | |
tree | efcc6356391e6555ffbdad1118b0d1230a411613 /game/workers | |
parent | a7bb9c455f8ebd197d1651d85efebd18f5ac971f (diff) |
Added extra sorting layer for workers
Diffstat (limited to 'game/workers')
-rw-r--r-- | game/workers/WorkersSubScene.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/game/workers/WorkersSubScene.cpp b/game/workers/WorkersSubScene.cpp index e5b4678..215e3f2 100644 --- a/game/workers/WorkersSubScene.cpp +++ b/game/workers/WorkersSubScene.cpp @@ -34,7 +34,7 @@ void WorkersSubScene::worker1(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_1_body_sprite = worker_1.add_component<Sprite>( Asset {"asset/workers/worker1Body.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 0, .size = vec2(0, 50), } @@ -49,7 +49,7 @@ void WorkersSubScene::worker1(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_1_head_sprite = worker_1.add_component<Sprite>( Asset {"asset/workers/worker1Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 1, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -82,7 +82,7 @@ void WorkersSubScene::worker2(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_2_body_sprite = worker_2.add_component<Sprite>( Asset {"asset/workers/worker2Body.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 2, .size = vec2(0, 50), } @@ -97,7 +97,7 @@ void WorkersSubScene::worker2(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_2_head_sprite = worker_2.add_component<Sprite>( Asset {"asset/workers/worker1Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 3, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -130,7 +130,7 @@ void WorkersSubScene::worker3(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_3_body_sprite = worker_3.add_component<Sprite>( Asset {"asset/workers/worker1Body.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 4, .size = vec2(0, 50), } @@ -145,7 +145,7 @@ void WorkersSubScene::worker3(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_3_head_sprite = worker_3.add_component<Sprite>( Asset {"asset/workers/worker2Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 5, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -178,7 +178,7 @@ void WorkersSubScene::worker4(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_4_body_sprite = worker_4.add_component<Sprite>( Asset {"asset/workers/worker2Body.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 6, .size = vec2(0, 50), } @@ -193,7 +193,7 @@ void WorkersSubScene::worker4(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_4_head_sprite = worker_4.add_component<Sprite>( Asset {"asset/workers/worker2Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 7, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -226,7 +226,7 @@ void WorkersSubScene::worker5(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_5_body_sprite = worker_5.add_component<Sprite>( Asset {"asset/workers/workerFatBody.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 8, .size = vec2(0, 50), } @@ -241,7 +241,7 @@ void WorkersSubScene::worker5(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_5_head_sprite = worker_5.add_component<Sprite>( Asset {"asset/workers/worker1Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 9, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -274,7 +274,7 @@ void WorkersSubScene::worker6(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_6_body_sprite = worker_6.add_component<Sprite>( Asset {"asset/workers/workerFatBody.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 10, .size = vec2(0, 50), } @@ -289,7 +289,7 @@ void WorkersSubScene::worker6(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_6_head_sprite = worker_6.add_component<Sprite>( Asset {"asset/workers/worker2Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 11, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -322,7 +322,7 @@ void WorkersSubScene::worker7(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_7_body_sprite = worker_7.add_component<Sprite>( Asset {"asset/workers/workerTallBody.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 12, .size = vec2(0, 50), } @@ -337,7 +337,7 @@ void WorkersSubScene::worker7(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_7_head_sprite = worker_7.add_component<Sprite>( Asset {"asset/workers/worker1Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_BACK, .order_in_layer = 13, .size = vec2(0, 50), .position_offset = vec2(0, -20), @@ -370,7 +370,7 @@ void WorkersSubScene::worker8(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_8_body_sprite = worker_8.add_component<Sprite>( Asset {"asset/workers/workerTallBody.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 14, .size = vec2(0, 50), } @@ -385,7 +385,7 @@ void WorkersSubScene::worker8(crepe::Scene & scn, float start_x, float init_spee Sprite & worker_8_head_sprite = worker_8.add_component<Sprite>( Asset {"asset/workers/worker2Head.png"}, Sprite::Data { - .sorting_in_layer = SORT_IN_LAY_WORKERS, + .sorting_in_layer = SORT_IN_LAY_WORKERS_FRONT, .order_in_layer = 15, .size = vec2(0, 50), .position_offset = vec2(0, -20), |