From b1de5883b6074861772d62341cfc8e30a1581ad0 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Wed, 23 Nov 2022 16:16:28 -0600 Subject: [PATCH 1/3] Switch Levels to YAML Format --- assets/default.game.yaml | 6 +- assets/map/levels/level1.map.json | 1889 ------------------------ assets/map/levels/level1.map.yaml | 1291 +++++++++++++++++ assets/map/levels/level2.map.json | 1271 ---------------- assets/map/levels/level2.map.yaml | 873 +++++++++++ assets/map/levels/level3.map.json | 2239 ----------------------------- assets/map/levels/level3.map.yaml | 1534 ++++++++++++++++++++ 7 files changed, 3701 insertions(+), 5402 deletions(-) delete mode 100644 assets/map/levels/level1.map.json create mode 100644 assets/map/levels/level1.map.yaml delete mode 100644 assets/map/levels/level2.map.json create mode 100644 assets/map/levels/level2.map.yaml delete mode 100644 assets/map/levels/level3.map.json create mode 100644 assets/map/levels/level3.map.yaml diff --git a/assets/default.game.yaml b/assets/default.game.yaml index 20162b350a..8dc4834105 100644 --- a/assets/default.game.yaml +++ b/assets/default.game.yaml @@ -14,9 +14,9 @@ players: - player/skins/pescy/pescy.player.yaml maps: - - map/levels/level1.map.json - - map/levels/level2.map.json - - map/levels/level3.map.json + - map/levels/level1.map.yaml + - map/levels/level2.map.yaml + - map/levels/level3.map.yaml # - map/levels/lev01.map.json # - map/levels/lev02.map.json # - map/levels/lev03.map.json diff --git a/assets/map/levels/level1.map.json b/assets/map/levels/level1.map.json deleted file mode 100644 index 022bc9ebca..0000000000 --- a/assets/map/levels/level1.map.json +++ /dev/null @@ -1,1889 +0,0 @@ -{ - "name": "Level 1", - "background_color": "7EA8A6", - "grid_size": [ - 27, - 21 - ], - "tile_size": [ - 32, - 32 - ], - "layers": [ - { - "id": "main layer", - "kind": { - "tile": { - "has_collision": true, - "tiles": [ - { - "pos": [ - 0, - 20 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 20 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 20 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 20 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 19 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 19 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 19 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 19 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 18 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 18 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 18 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 18 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 17 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 17 - ], - "idx": 9 - }, - { - "pos": [ - 8, - 17 - ], - "idx": 32 - }, - { - "pos": [ - 9, - 17 - ], - "idx": 34 - }, - { - "pos": [ - 17, - 17 - ], - "idx": 32 - }, - { - "pos": [ - 18, - 17 - ], - "idx": 34 - }, - { - "pos": [ - 25, - 17 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 17 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 16 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 16 - ], - "idx": 9 - }, - { - "pos": [ - 8, - 16 - ], - "idx": 39 - }, - { - "pos": [ - 9, - 16 - ], - "idx": 40 - }, - { - "pos": [ - 10, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 11, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 12, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 13, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 14, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 15, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 16, - 16 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 17, - 16 - ], - "idx": 39 - }, - { - "pos": [ - 18, - 16 - ], - "idx": 41 - }, - { - "pos": [ - 25, - 16 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 16 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 15 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 15 - ], - "idx": 9 - }, - { - "pos": [ - 6, - 15 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 7, - 15 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 8, - 15 - ], - "idx": 46 - }, - { - "pos": [ - 9, - 15 - ], - "idx": 48 - }, - { - "pos": [ - 17, - 15 - ], - "idx": 46 - }, - { - "pos": [ - 18, - 15 - ], - "idx": 48 - }, - { - "pos": [ - 19, - 15 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 20, - 15 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 25, - 15 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 15 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 14 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 14 - ], - "idx": 9 - }, - { - "pos": [ - 2, - 14 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 24, - 14 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 25, - 14 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 14 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 13 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 13 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 13 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 13 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 12 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 12 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 12 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 12 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 11 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 11 - ], - "idx": 9 - }, - { - "pos": [ - 2, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 3, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 4, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 5, - 11 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 21, - 11 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 22, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 23, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 24, - 11 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 25, - 11 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 11 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 10 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 10 - ], - "idx": 9 - }, - { - "pos": [ - 11, - 10 - ], - "idx": 0 - }, - { - "pos": [ - 12, - 10 - ], - "idx": 1 - }, - { - "pos": [ - 13, - 10 - ], - "idx": 1 - }, - { - "pos": [ - 14, - 10 - ], - "idx": 1 - }, - { - "pos": [ - 15, - 10 - ], - "idx": 2 - }, - { - "pos": [ - 25, - 10 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 10 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 9 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 9 - ], - "idx": 9 - }, - { - "pos": [ - 11, - 9 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 9 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 9 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 9 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 9 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 9 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 9 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 8 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 8 - ], - "idx": 9 - }, - { - "pos": [ - 7, - 8 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 8, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 9, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 10, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 11, - 8 - ], - "idx": 14 - }, - { - "pos": [ - 12, - 8 - ], - "idx": 15 - }, - { - "pos": [ - 13, - 8 - ], - "idx": 15 - }, - { - "pos": [ - 14, - 8 - ], - "idx": 15 - }, - { - "pos": [ - 15, - 8 - ], - "idx": 16 - }, - { - "pos": [ - 16, - 8 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 17, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 18, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 19, - 8 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 25, - 8 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 8 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 7 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 7 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 7 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 7 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 6 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 6 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 5 - ], - "idx": 20 - }, - { - "pos": [ - 2, - 5 - ], - "idx": 40 - }, - { - "pos": [ - 3, - 5 - ], - "idx": 40 - }, - { - "pos": [ - 4, - 5 - ], - "idx": 23 - }, - { - "pos": [ - 22, - 5 - ], - "idx": 21 - }, - { - "pos": [ - 23, - 5 - ], - "idx": 40 - }, - { - "pos": [ - 24, - 5 - ], - "idx": 40 - }, - { - "pos": [ - 25, - 5 - ], - "idx": 13 - }, - { - "pos": [ - 26, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 4 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 4 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 3 - ], - "idx": 9 - }, - { - "pos": [ - 25, - 3 - ], - "idx": 7 - }, - { - "pos": [ - 26, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 2 - ], - "idx": 11 - }, - { - "pos": [ - 2, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 3, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 4, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 5, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 6, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 7, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 8, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 9, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 10, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 11, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 12, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 13, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 14, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 15, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 16, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 17, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 18, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 19, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 20, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 21, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 22, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 23, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 24, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 25, - 2 - ], - "idx": 12 - }, - { - "pos": [ - 26, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 5, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 7, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 9, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 11, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 19, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 21, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 23, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 1, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 2, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 3, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 4, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 5, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 6, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 7, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 8, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 9, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 10, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 11, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 12, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 13, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 14, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 15, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 16, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 17, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 18, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 19, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 20, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 21, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 22, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 23, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 24, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 25, - 0 - ], - "idx": 15 - }, - { - "pos": [ - 26, - 0 - ], - "idx": 15 - } - ], - "tilemap": "../resources/default_tileset.png" - } - } - }, - { - "id": "decorations", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 434.74872000000005, - 361.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 84.00005999999999, - 201.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 787.7431999999999, - 201.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 90.666664, - 121.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 776, - 121.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 672, - 121.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 192, - 121.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 448, - 121.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 437.2876, - 377.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 608, - 313.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 441.66668000000004, - 569.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 256, - 313.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 291.83331999999996, - 601.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 777.6371999999999, - 409.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 576, - 601.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 88, - 409.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - } - ] - } - } - }, - { - "id": "items", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 536, - 309.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 292.22720000000004, - 609.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 552, - 289.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 496, - 545.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 184, - 155.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 772.4570000000001, - 425.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 312.0556, - 311.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 132.024688, - 121.5 - ], - "element": "../elements/item/machine_gun/machine_gun.element.yaml" - }, - { - "pos": [ - 561, - 599.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - }, - { - "pos": [ - 272, - 593.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - }, - { - "pos": [ - 171.57139999999998, - 409.5 - ], - "element": "../elements/item/kick_bomb/kick_bomb.element.yaml" - }, - { - "pos": [ - 712, - 393.5 - ], - "element": "../elements/item/mines/mines.element.yaml" - }, - { - "pos": [ - 720.9998, - 121.5 - ], - "element": "../elements/item/cannon/cannon.element.yaml" - }, - { - "pos": [ - 312, - 105.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 576, - 105.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - } - ] - } - } - }, - { - "id": "spawners", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 268.33334, - 640 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 124.16667, - 224.50002999999998 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 701.74677, - 225.11905000000002 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 559.6667, - 640 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - } - ] - } - } - } - ], - "background_layers": [ - { - "image": "../resources/background_04.png", - "speed": 0, - "tile_size": [ - 896, - 480 - ], - "z": -110, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_03.png", - "speed": 0.74, - "tile_size": [ - 896, - 480 - ], - "z": -109, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_02.png", - "speed": 0.82, - "tile_size": [ - 896, - 480 - ], - "z": -108, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_01.png", - "speed": 100, - "tile_size": [ - 896, - 480 - ], - "z": -107, - "position": [ - 0, - 360 - ], - "scale": 2 - } - ] -} \ No newline at end of file diff --git a/assets/map/levels/level1.map.yaml b/assets/map/levels/level1.map.yaml new file mode 100644 index 0000000000..f54ad38595 --- /dev/null +++ b/assets/map/levels/level1.map.yaml @@ -0,0 +1,1291 @@ +name: Level 1 +background_layers: + - speed: 0.0 + image: ../resources/background_04.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -110.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.74 + image: ../resources/background_03.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -109.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.82 + image: ../resources/background_02.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -108.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 100.0 + image: ../resources/background_01.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -107.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 +background_color: 7EA8A6FF +grid_size: + - 27 + - 21 +tile_size: + - 32 + - 32 +layers: + - id: main layer + kind: !tile + tilemap: ../resources/default_tileset.png + has_collision: true + tiles: + - pos: + - 0 + - 20 + idx: 8 + jump_through: false + - pos: + - 1 + - 20 + idx: 9 + jump_through: false + - pos: + - 25 + - 20 + idx: 7 + jump_through: false + - pos: + - 26 + - 20 + idx: 8 + jump_through: false + - pos: + - 0 + - 19 + idx: 8 + jump_through: false + - pos: + - 1 + - 19 + idx: 9 + jump_through: false + - pos: + - 25 + - 19 + idx: 7 + jump_through: false + - pos: + - 26 + - 19 + idx: 8 + jump_through: false + - pos: + - 0 + - 18 + idx: 8 + jump_through: false + - pos: + - 1 + - 18 + idx: 9 + jump_through: false + - pos: + - 25 + - 18 + idx: 7 + jump_through: false + - pos: + - 26 + - 18 + idx: 8 + jump_through: false + - pos: + - 0 + - 17 + idx: 8 + jump_through: false + - pos: + - 1 + - 17 + idx: 9 + jump_through: false + - pos: + - 8 + - 17 + idx: 32 + jump_through: false + - pos: + - 9 + - 17 + idx: 34 + jump_through: false + - pos: + - 17 + - 17 + idx: 32 + jump_through: false + - pos: + - 18 + - 17 + idx: 34 + jump_through: false + - pos: + - 25 + - 17 + idx: 7 + jump_through: false + - pos: + - 26 + - 17 + idx: 8 + jump_through: false + - pos: + - 0 + - 16 + idx: 8 + jump_through: false + - pos: + - 1 + - 16 + idx: 9 + jump_through: false + - pos: + - 8 + - 16 + idx: 39 + jump_through: false + - pos: + - 9 + - 16 + idx: 40 + jump_through: false + - pos: + - 10 + - 16 + idx: 58 + jump_through: true + - pos: + - 11 + - 16 + idx: 58 + jump_through: true + - pos: + - 12 + - 16 + idx: 58 + jump_through: true + - pos: + - 13 + - 16 + idx: 58 + jump_through: true + - pos: + - 14 + - 16 + idx: 58 + jump_through: true + - pos: + - 15 + - 16 + idx: 58 + jump_through: true + - pos: + - 16 + - 16 + idx: 58 + jump_through: true + - pos: + - 17 + - 16 + idx: 39 + jump_through: false + - pos: + - 18 + - 16 + idx: 41 + jump_through: false + - pos: + - 25 + - 16 + idx: 7 + jump_through: false + - pos: + - 26 + - 16 + idx: 8 + jump_through: false + - pos: + - 0 + - 15 + idx: 8 + jump_through: false + - pos: + - 1 + - 15 + idx: 9 + jump_through: false + - pos: + - 6 + - 15 + idx: 56 + jump_through: true + - pos: + - 7 + - 15 + idx: 58 + jump_through: true + - pos: + - 8 + - 15 + idx: 46 + jump_through: false + - pos: + - 9 + - 15 + idx: 48 + jump_through: false + - pos: + - 17 + - 15 + idx: 46 + jump_through: false + - pos: + - 18 + - 15 + idx: 48 + jump_through: false + - pos: + - 19 + - 15 + idx: 58 + jump_through: true + - pos: + - 20 + - 15 + idx: 60 + jump_through: true + - pos: + - 25 + - 15 + idx: 7 + jump_through: false + - pos: + - 26 + - 15 + idx: 8 + jump_through: false + - pos: + - 0 + - 14 + idx: 8 + jump_through: false + - pos: + - 1 + - 14 + idx: 9 + jump_through: false + - pos: + - 2 + - 14 + idx: 60 + jump_through: true + - pos: + - 24 + - 14 + idx: 56 + jump_through: true + - pos: + - 25 + - 14 + idx: 7 + jump_through: false + - pos: + - 26 + - 14 + idx: 8 + jump_through: false + - pos: + - 0 + - 13 + idx: 8 + jump_through: false + - pos: + - 1 + - 13 + idx: 9 + jump_through: false + - pos: + - 25 + - 13 + idx: 7 + jump_through: false + - pos: + - 26 + - 13 + idx: 8 + jump_through: false + - pos: + - 0 + - 12 + idx: 8 + jump_through: false + - pos: + - 1 + - 12 + idx: 9 + jump_through: false + - pos: + - 25 + - 12 + idx: 7 + jump_through: false + - pos: + - 26 + - 12 + idx: 8 + jump_through: false + - pos: + - 0 + - 11 + idx: 8 + jump_through: false + - pos: + - 1 + - 11 + idx: 9 + jump_through: false + - pos: + - 2 + - 11 + idx: 58 + jump_through: true + - pos: + - 3 + - 11 + idx: 58 + jump_through: true + - pos: + - 4 + - 11 + idx: 58 + jump_through: true + - pos: + - 5 + - 11 + idx: 60 + jump_through: true + - pos: + - 21 + - 11 + idx: 56 + jump_through: true + - pos: + - 22 + - 11 + idx: 58 + jump_through: true + - pos: + - 23 + - 11 + idx: 58 + jump_through: true + - pos: + - 24 + - 11 + idx: 58 + jump_through: true + - pos: + - 25 + - 11 + idx: 7 + jump_through: false + - pos: + - 26 + - 11 + idx: 8 + jump_through: false + - pos: + - 0 + - 10 + idx: 8 + jump_through: false + - pos: + - 1 + - 10 + idx: 9 + jump_through: false + - pos: + - 11 + - 10 + idx: 0 + jump_through: false + - pos: + - 12 + - 10 + idx: 1 + jump_through: false + - pos: + - 13 + - 10 + idx: 1 + jump_through: false + - pos: + - 14 + - 10 + idx: 1 + jump_through: false + - pos: + - 15 + - 10 + idx: 2 + jump_through: false + - pos: + - 25 + - 10 + idx: 7 + jump_through: false + - pos: + - 26 + - 10 + idx: 8 + jump_through: false + - pos: + - 0 + - 9 + idx: 8 + jump_through: false + - pos: + - 1 + - 9 + idx: 9 + jump_through: false + - pos: + - 11 + - 9 + idx: 7 + jump_through: false + - pos: + - 12 + - 9 + idx: 8 + jump_through: false + - pos: + - 13 + - 9 + idx: 8 + jump_through: false + - pos: + - 14 + - 9 + idx: 8 + jump_through: false + - pos: + - 15 + - 9 + idx: 9 + jump_through: false + - pos: + - 25 + - 9 + idx: 7 + jump_through: false + - pos: + - 26 + - 9 + idx: 8 + jump_through: false + - pos: + - 0 + - 8 + idx: 8 + jump_through: false + - pos: + - 1 + - 8 + idx: 9 + jump_through: false + - pos: + - 7 + - 8 + idx: 56 + jump_through: true + - pos: + - 8 + - 8 + idx: 58 + jump_through: true + - pos: + - 9 + - 8 + idx: 58 + jump_through: true + - pos: + - 10 + - 8 + idx: 58 + jump_through: true + - pos: + - 11 + - 8 + idx: 14 + jump_through: false + - pos: + - 12 + - 8 + idx: 15 + jump_through: false + - pos: + - 13 + - 8 + idx: 15 + jump_through: false + - pos: + - 14 + - 8 + idx: 15 + jump_through: false + - pos: + - 15 + - 8 + idx: 16 + jump_through: false + - pos: + - 16 + - 8 + idx: 56 + jump_through: true + - pos: + - 17 + - 8 + idx: 58 + jump_through: true + - pos: + - 18 + - 8 + idx: 58 + jump_through: true + - pos: + - 19 + - 8 + idx: 60 + jump_through: true + - pos: + - 25 + - 8 + idx: 7 + jump_through: false + - pos: + - 26 + - 8 + idx: 8 + jump_through: false + - pos: + - 0 + - 7 + idx: 8 + jump_through: false + - pos: + - 1 + - 7 + idx: 9 + jump_through: false + - pos: + - 25 + - 7 + idx: 7 + jump_through: false + - pos: + - 26 + - 7 + idx: 8 + jump_through: false + - pos: + - 0 + - 6 + idx: 8 + jump_through: false + - pos: + - 1 + - 6 + idx: 9 + jump_through: false + - pos: + - 25 + - 6 + idx: 7 + jump_through: false + - pos: + - 26 + - 6 + idx: 8 + jump_through: false + - pos: + - 0 + - 5 + idx: 8 + jump_through: false + - pos: + - 1 + - 5 + idx: 20 + jump_through: false + - pos: + - 2 + - 5 + idx: 40 + jump_through: false + - pos: + - 3 + - 5 + idx: 40 + jump_through: false + - pos: + - 4 + - 5 + idx: 23 + jump_through: false + - pos: + - 22 + - 5 + idx: 21 + jump_through: false + - pos: + - 23 + - 5 + idx: 40 + jump_through: false + - pos: + - 24 + - 5 + idx: 40 + jump_through: false + - pos: + - 25 + - 5 + idx: 13 + jump_through: false + - pos: + - 26 + - 5 + idx: 8 + jump_through: false + - pos: + - 0 + - 4 + idx: 8 + jump_through: false + - pos: + - 1 + - 4 + idx: 9 + jump_through: false + - pos: + - 25 + - 4 + idx: 7 + jump_through: false + - pos: + - 26 + - 4 + idx: 8 + jump_through: false + - pos: + - 0 + - 3 + idx: 8 + jump_through: false + - pos: + - 1 + - 3 + idx: 9 + jump_through: false + - pos: + - 25 + - 3 + idx: 7 + jump_through: false + - pos: + - 26 + - 3 + idx: 8 + jump_through: false + - pos: + - 0 + - 2 + idx: 8 + jump_through: false + - pos: + - 1 + - 2 + idx: 11 + jump_through: false + - pos: + - 2 + - 2 + idx: 1 + jump_through: false + - pos: + - 3 + - 2 + idx: 1 + jump_through: false + - pos: + - 4 + - 2 + idx: 1 + jump_through: false + - pos: + - 5 + - 2 + idx: 1 + jump_through: false + - pos: + - 6 + - 2 + idx: 1 + jump_through: false + - pos: + - 7 + - 2 + idx: 1 + jump_through: false + - pos: + - 8 + - 2 + idx: 1 + jump_through: false + - pos: + - 9 + - 2 + idx: 1 + jump_through: false + - pos: + - 10 + - 2 + idx: 1 + jump_through: false + - pos: + - 11 + - 2 + idx: 1 + jump_through: false + - pos: + - 12 + - 2 + idx: 1 + jump_through: false + - pos: + - 13 + - 2 + idx: 1 + jump_through: false + - pos: + - 14 + - 2 + idx: 1 + jump_through: false + - pos: + - 15 + - 2 + idx: 1 + jump_through: false + - pos: + - 16 + - 2 + idx: 1 + jump_through: false + - pos: + - 17 + - 2 + idx: 1 + jump_through: false + - pos: + - 18 + - 2 + idx: 1 + jump_through: false + - pos: + - 19 + - 2 + idx: 1 + jump_through: false + - pos: + - 20 + - 2 + idx: 1 + jump_through: false + - pos: + - 21 + - 2 + idx: 1 + jump_through: false + - pos: + - 22 + - 2 + idx: 1 + jump_through: false + - pos: + - 23 + - 2 + idx: 1 + jump_through: false + - pos: + - 24 + - 2 + idx: 1 + jump_through: false + - pos: + - 25 + - 2 + idx: 12 + jump_through: false + - pos: + - 26 + - 2 + idx: 8 + jump_through: false + - pos: + - 0 + - 1 + idx: 8 + jump_through: false + - pos: + - 1 + - 1 + idx: 8 + jump_through: false + - pos: + - 2 + - 1 + idx: 8 + jump_through: false + - pos: + - 3 + - 1 + idx: 8 + jump_through: false + - pos: + - 4 + - 1 + idx: 8 + jump_through: false + - pos: + - 5 + - 1 + idx: 8 + jump_through: false + - pos: + - 6 + - 1 + idx: 8 + jump_through: false + - pos: + - 7 + - 1 + idx: 8 + jump_through: false + - pos: + - 8 + - 1 + idx: 8 + jump_through: false + - pos: + - 9 + - 1 + idx: 8 + jump_through: false + - pos: + - 10 + - 1 + idx: 8 + jump_through: false + - pos: + - 11 + - 1 + idx: 8 + jump_through: false + - pos: + - 12 + - 1 + idx: 8 + jump_through: false + - pos: + - 13 + - 1 + idx: 8 + jump_through: false + - pos: + - 14 + - 1 + idx: 8 + jump_through: false + - pos: + - 15 + - 1 + idx: 8 + jump_through: false + - pos: + - 16 + - 1 + idx: 8 + jump_through: false + - pos: + - 17 + - 1 + idx: 8 + jump_through: false + - pos: + - 18 + - 1 + idx: 8 + jump_through: false + - pos: + - 19 + - 1 + idx: 8 + jump_through: false + - pos: + - 20 + - 1 + idx: 8 + jump_through: false + - pos: + - 21 + - 1 + idx: 8 + jump_through: false + - pos: + - 22 + - 1 + idx: 8 + jump_through: false + - pos: + - 23 + - 1 + idx: 8 + jump_through: false + - pos: + - 24 + - 1 + idx: 8 + jump_through: false + - pos: + - 25 + - 1 + idx: 8 + jump_through: false + - pos: + - 26 + - 1 + idx: 8 + jump_through: false + - pos: + - 0 + - 0 + idx: 15 + jump_through: false + - pos: + - 1 + - 0 + idx: 15 + jump_through: false + - pos: + - 2 + - 0 + idx: 15 + jump_through: false + - pos: + - 3 + - 0 + idx: 15 + jump_through: false + - pos: + - 4 + - 0 + idx: 15 + jump_through: false + - pos: + - 5 + - 0 + idx: 15 + jump_through: false + - pos: + - 6 + - 0 + idx: 15 + jump_through: false + - pos: + - 7 + - 0 + idx: 15 + jump_through: false + - pos: + - 8 + - 0 + idx: 15 + jump_through: false + - pos: + - 9 + - 0 + idx: 15 + jump_through: false + - pos: + - 10 + - 0 + idx: 15 + jump_through: false + - pos: + - 11 + - 0 + idx: 15 + jump_through: false + - pos: + - 12 + - 0 + idx: 15 + jump_through: false + - pos: + - 13 + - 0 + idx: 15 + jump_through: false + - pos: + - 14 + - 0 + idx: 15 + jump_through: false + - pos: + - 15 + - 0 + idx: 15 + jump_through: false + - pos: + - 16 + - 0 + idx: 15 + jump_through: false + - pos: + - 17 + - 0 + idx: 15 + jump_through: false + - pos: + - 18 + - 0 + idx: 15 + jump_through: false + - pos: + - 19 + - 0 + idx: 15 + jump_through: false + - pos: + - 20 + - 0 + idx: 15 + jump_through: false + - pos: + - 21 + - 0 + idx: 15 + jump_through: false + - pos: + - 22 + - 0 + idx: 15 + jump_through: false + - pos: + - 23 + - 0 + idx: 15 + jump_through: false + - pos: + - 24 + - 0 + idx: 15 + jump_through: false + - pos: + - 25 + - 0 + idx: 15 + jump_through: false + - pos: + - 26 + - 0 + idx: 15 + jump_through: false + - id: decorations + kind: !element + elements: + - pos: + - 434.74872 + - 361.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 84.00006 + - 201.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 787.7432 + - 201.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 90.666664 + - 121.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 776.0 + - 121.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 672.0 + - 121.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 192.0 + - 121.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 448.0 + - 121.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 437.2876 + - 377.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 608.0 + - 313.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 441.6667 + - 569.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 256.0 + - 313.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 291.8333 + - 601.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 777.6372 + - 409.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 576.0 + - 601.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 88.0 + - 409.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - id: items + kind: !element + elements: + - pos: + - 536.0 + - 309.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 292.2272 + - 609.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 552.0 + - 289.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 496.0 + - 545.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 184.0 + - 155.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 772.457 + - 425.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 312.0556 + - 311.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 132.02469 + - 121.5 + element: ../elements/item/machine_gun/machine_gun.element.yaml + - pos: + - 561.0 + - 599.5 + element: ../elements/item/sword/sword.element.yaml + - pos: + - 272.0 + - 593.5 + element: ../elements/item/sword/sword.element.yaml + - pos: + - 171.5714 + - 409.5 + element: ../elements/item/kick_bomb/kick_bomb.element.yaml + - pos: + - 712.0 + - 393.5 + element: ../elements/item/mines/mines.element.yaml + - pos: + - 720.9998 + - 121.5 + element: ../elements/item/cannon/cannon.element.yaml + - pos: + - 312.0 + - 105.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 576.0 + - 105.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - id: spawners + kind: !element + elements: + - pos: + - 268.33334 + - 640.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 124.16667 + - 224.50003 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 701.74677 + - 225.11905 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 559.6667 + - 640.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml diff --git a/assets/map/levels/level2.map.json b/assets/map/levels/level2.map.json deleted file mode 100644 index e563f1f22c..0000000000 --- a/assets/map/levels/level2.map.json +++ /dev/null @@ -1,1271 +0,0 @@ -{ - "name": "Level 2", - "background_color": "7EA8A6", - "grid_size": [ - 34, - 14 - ], - "tile_size": [ - 32, - 32 - ], - "layers": [ - { - "id": "main layer", - "kind": { - "tile": { - "has_collision": true, - "tiles": [ - { - "pos": [ - 21, - 9 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 22, - 9 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 23, - 9 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 6, - 8 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 7, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 8, - 8 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 11, - 7 - ], - "idx": 0 - }, - { - "pos": [ - 12, - 7 - ], - "idx": 1 - }, - { - "pos": [ - 13, - 7 - ], - "idx": 1 - }, - { - "pos": [ - 14, - 7 - ], - "idx": 1 - }, - { - "pos": [ - 15, - 7 - ], - "idx": 1 - }, - { - "pos": [ - 16, - 7 - ], - "idx": 2 - }, - { - "pos": [ - 11, - 6 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 6 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 6 - ], - "idx": 9 - }, - { - "pos": [ - 11, - 5 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 5 - ], - "idx": 9 - }, - { - "pos": [ - 24, - 5 - ], - "idx": 0 - }, - { - "pos": [ - 25, - 5 - ], - "idx": 1 - }, - { - "pos": [ - 26, - 5 - ], - "idx": 1 - }, - { - "pos": [ - 27, - 5 - ], - "idx": 1 - }, - { - "pos": [ - 28, - 5 - ], - "idx": 2 - }, - { - "pos": [ - 4, - 4 - ], - "idx": 0 - }, - { - "pos": [ - 5, - 4 - ], - "idx": 1 - }, - { - "pos": [ - 6, - 4 - ], - "idx": 2 - }, - { - "pos": [ - 11, - 4 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 4 - ], - "idx": 0 - }, - { - "pos": [ - 16, - 4 - ], - "idx": 1 - }, - { - "pos": [ - 17, - 4 - ], - "idx": 1 - }, - { - "pos": [ - 18, - 4 - ], - "idx": 2 - }, - { - "pos": [ - 24, - 4 - ], - "idx": 7 - }, - { - "pos": [ - 25, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 27, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 28, - 4 - ], - "idx": 9 - }, - { - "pos": [ - 4, - 3 - ], - "idx": 7 - }, - { - "pos": [ - 5, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 3 - ], - "idx": 9 - }, - { - "pos": [ - 11, - 3 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 3 - ], - "idx": 7 - }, - { - "pos": [ - 16, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 3 - ], - "idx": 9 - }, - { - "pos": [ - 24, - 3 - ], - "idx": 7 - }, - { - "pos": [ - 25, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 27, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 28, - 3 - ], - "idx": 9 - }, - { - "pos": [ - 4, - 2 - ], - "idx": 7 - }, - { - "pos": [ - 5, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 2 - ], - "idx": 9 - }, - { - "pos": [ - 11, - 2 - ], - "idx": 7 - }, - { - "pos": [ - 12, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 2 - ], - "idx": 7 - }, - { - "pos": [ - 16, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 2 - ], - "idx": 9 - }, - { - "pos": [ - 24, - 2 - ], - "idx": 7 - }, - { - "pos": [ - 25, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 27, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 28, - 2 - ], - "idx": 9 - }, - { - "pos": [ - 2, - 1 - ], - "idx": 0 - }, - { - "pos": [ - 3, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 4, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 5, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 6, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 7, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 8, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 9, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 10, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 11, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 12, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 13, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 14, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 15, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 16, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 17, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 18, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 19, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 20, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 21, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 22, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 23, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 24, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 25, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 26, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 27, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 28, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 29, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 30, - 1 - ], - "idx": 1 - }, - { - "pos": [ - 31, - 1 - ], - "idx": 2 - }, - { - "pos": [ - 2, - 0 - ], - "idx": 7 - }, - { - "pos": [ - 3, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 5, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 7, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 9, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 11, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 19, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 21, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 23, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 27, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 28, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 29, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 30, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 31, - 0 - ], - "idx": 9 - } - ], - "tilemap": "../resources/default_tileset.png" - } - } - }, - { - "id": "decorations", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 536, - 185.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 216, - 89.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 440, - 89.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 888, - 217.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 760, - 89.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 408, - 281.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 920, - 89.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 120, - 89.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - } - ] - } - } - }, - { - "id": "items", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 222.66680000000002, - 127.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 446, - 185.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 712.0001199999999, - 73.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 891.3332, - 241.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 478.66668000000004, - 265.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 256, - 73.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 652.5714, - 73.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 456, - 285.5 - ], - "element": "../elements/item/kick_bomb/kick_bomb.element.yaml" - }, - { - "pos": [ - 1015.1428000000001, - 95.5 - ], - "element": "../elements/item/kick_bomb/kick_bomb.element.yaml" - }, - { - "pos": [ - 343.11120000000005, - 73.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 758.1110799999999, - 73.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 949.4359199999999, - 73.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 706.8571999999999, - 337.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - }, - { - "pos": [ - 224, - 311.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - } - ] - } - } - }, - { - "id": "spawners", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 160, - 192 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 320, - 96 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 576, - 192 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 704, - 96 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 800, - 224 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 960, - 96 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - } - ] - } - } - } - ], - "background_layers": [ - { - "image": "../resources/background_04.png", - "speed": 0, - "tile_size": [ - 896, - 480 - ], - "z": -110, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_03.png", - "speed": 0.74, - "tile_size": [ - 896, - 480 - ], - "z": -109, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_02.png", - "speed": 0.82, - "tile_size": [ - 896, - 480 - ], - "z": -108, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_01.png", - "speed": 100, - "tile_size": [ - 896, - 480 - ], - "z": -107, - "position": [ - 0, - 360 - ], - "scale": 2 - } - ] -} \ No newline at end of file diff --git a/assets/map/levels/level2.map.yaml b/assets/map/levels/level2.map.yaml new file mode 100644 index 0000000000..7cc7f7ffd1 --- /dev/null +++ b/assets/map/levels/level2.map.yaml @@ -0,0 +1,873 @@ +name: Level 2 +background_layers: + - speed: 0.0 + image: ../resources/background_04.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -110.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.74 + image: ../resources/background_03.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -109.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.82 + image: ../resources/background_02.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -108.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 100.0 + image: ../resources/background_01.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -107.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 +background_color: 7EA8A6FF +grid_size: + - 34 + - 14 +tile_size: + - 32 + - 32 +layers: + - id: main layer + kind: !tile + tilemap: ../resources/default_tileset.png + has_collision: true + tiles: + - pos: + - 21 + - 9 + idx: 56 + jump_through: true + - pos: + - 22 + - 9 + idx: 58 + jump_through: true + - pos: + - 23 + - 9 + idx: 60 + jump_through: true + - pos: + - 6 + - 8 + idx: 56 + jump_through: true + - pos: + - 7 + - 8 + idx: 58 + jump_through: true + - pos: + - 8 + - 8 + idx: 60 + jump_through: true + - pos: + - 11 + - 7 + idx: 0 + jump_through: false + - pos: + - 12 + - 7 + idx: 1 + jump_through: false + - pos: + - 13 + - 7 + idx: 1 + jump_through: false + - pos: + - 14 + - 7 + idx: 1 + jump_through: false + - pos: + - 15 + - 7 + idx: 1 + jump_through: false + - pos: + - 16 + - 7 + idx: 2 + jump_through: false + - pos: + - 11 + - 6 + idx: 7 + jump_through: false + - pos: + - 12 + - 6 + idx: 8 + jump_through: false + - pos: + - 13 + - 6 + idx: 8 + jump_through: false + - pos: + - 14 + - 6 + idx: 8 + jump_through: false + - pos: + - 15 + - 6 + idx: 8 + jump_through: false + - pos: + - 16 + - 6 + idx: 9 + jump_through: false + - pos: + - 11 + - 5 + idx: 7 + jump_through: false + - pos: + - 12 + - 5 + idx: 8 + jump_through: false + - pos: + - 13 + - 5 + idx: 8 + jump_through: false + - pos: + - 14 + - 5 + idx: 8 + jump_through: false + - pos: + - 15 + - 5 + idx: 8 + jump_through: false + - pos: + - 16 + - 5 + idx: 9 + jump_through: false + - pos: + - 24 + - 5 + idx: 0 + jump_through: false + - pos: + - 25 + - 5 + idx: 1 + jump_through: false + - pos: + - 26 + - 5 + idx: 1 + jump_through: false + - pos: + - 27 + - 5 + idx: 1 + jump_through: false + - pos: + - 28 + - 5 + idx: 2 + jump_through: false + - pos: + - 4 + - 4 + idx: 0 + jump_through: false + - pos: + - 5 + - 4 + idx: 1 + jump_through: false + - pos: + - 6 + - 4 + idx: 2 + jump_through: false + - pos: + - 11 + - 4 + idx: 7 + jump_through: false + - pos: + - 12 + - 4 + idx: 8 + jump_through: false + - pos: + - 13 + - 4 + idx: 8 + jump_through: false + - pos: + - 14 + - 4 + idx: 8 + jump_through: false + - pos: + - 15 + - 4 + idx: 0 + jump_through: false + - pos: + - 16 + - 4 + idx: 1 + jump_through: false + - pos: + - 17 + - 4 + idx: 1 + jump_through: false + - pos: + - 18 + - 4 + idx: 2 + jump_through: false + - pos: + - 24 + - 4 + idx: 7 + jump_through: false + - pos: + - 25 + - 4 + idx: 8 + jump_through: false + - pos: + - 26 + - 4 + idx: 8 + jump_through: false + - pos: + - 27 + - 4 + idx: 8 + jump_through: false + - pos: + - 28 + - 4 + idx: 9 + jump_through: false + - pos: + - 4 + - 3 + idx: 7 + jump_through: false + - pos: + - 5 + - 3 + idx: 8 + jump_through: false + - pos: + - 6 + - 3 + idx: 9 + jump_through: false + - pos: + - 11 + - 3 + idx: 7 + jump_through: false + - pos: + - 12 + - 3 + idx: 8 + jump_through: false + - pos: + - 13 + - 3 + idx: 8 + jump_through: false + - pos: + - 14 + - 3 + idx: 8 + jump_through: false + - pos: + - 15 + - 3 + idx: 7 + jump_through: false + - pos: + - 16 + - 3 + idx: 8 + jump_through: false + - pos: + - 17 + - 3 + idx: 8 + jump_through: false + - pos: + - 18 + - 3 + idx: 9 + jump_through: false + - pos: + - 24 + - 3 + idx: 7 + jump_through: false + - pos: + - 25 + - 3 + idx: 8 + jump_through: false + - pos: + - 26 + - 3 + idx: 8 + jump_through: false + - pos: + - 27 + - 3 + idx: 8 + jump_through: false + - pos: + - 28 + - 3 + idx: 9 + jump_through: false + - pos: + - 4 + - 2 + idx: 7 + jump_through: false + - pos: + - 5 + - 2 + idx: 8 + jump_through: false + - pos: + - 6 + - 2 + idx: 9 + jump_through: false + - pos: + - 11 + - 2 + idx: 7 + jump_through: false + - pos: + - 12 + - 2 + idx: 8 + jump_through: false + - pos: + - 13 + - 2 + idx: 8 + jump_through: false + - pos: + - 14 + - 2 + idx: 8 + jump_through: false + - pos: + - 15 + - 2 + idx: 7 + jump_through: false + - pos: + - 16 + - 2 + idx: 8 + jump_through: false + - pos: + - 17 + - 2 + idx: 8 + jump_through: false + - pos: + - 18 + - 2 + idx: 9 + jump_through: false + - pos: + - 24 + - 2 + idx: 7 + jump_through: false + - pos: + - 25 + - 2 + idx: 8 + jump_through: false + - pos: + - 26 + - 2 + idx: 8 + jump_through: false + - pos: + - 27 + - 2 + idx: 8 + jump_through: false + - pos: + - 28 + - 2 + idx: 9 + jump_through: false + - pos: + - 2 + - 1 + idx: 0 + jump_through: false + - pos: + - 3 + - 1 + idx: 1 + jump_through: false + - pos: + - 4 + - 1 + idx: 1 + jump_through: false + - pos: + - 5 + - 1 + idx: 1 + jump_through: false + - pos: + - 6 + - 1 + idx: 1 + jump_through: false + - pos: + - 7 + - 1 + idx: 1 + jump_through: false + - pos: + - 8 + - 1 + idx: 1 + jump_through: false + - pos: + - 9 + - 1 + idx: 1 + jump_through: false + - pos: + - 10 + - 1 + idx: 1 + jump_through: false + - pos: + - 11 + - 1 + idx: 1 + jump_through: false + - pos: + - 12 + - 1 + idx: 1 + jump_through: false + - pos: + - 13 + - 1 + idx: 1 + jump_through: false + - pos: + - 14 + - 1 + idx: 1 + jump_through: false + - pos: + - 15 + - 1 + idx: 1 + jump_through: false + - pos: + - 16 + - 1 + idx: 1 + jump_through: false + - pos: + - 17 + - 1 + idx: 1 + jump_through: false + - pos: + - 18 + - 1 + idx: 1 + jump_through: false + - pos: + - 19 + - 1 + idx: 1 + jump_through: false + - pos: + - 20 + - 1 + idx: 1 + jump_through: false + - pos: + - 21 + - 1 + idx: 1 + jump_through: false + - pos: + - 22 + - 1 + idx: 1 + jump_through: false + - pos: + - 23 + - 1 + idx: 1 + jump_through: false + - pos: + - 24 + - 1 + idx: 1 + jump_through: false + - pos: + - 25 + - 1 + idx: 1 + jump_through: false + - pos: + - 26 + - 1 + idx: 1 + jump_through: false + - pos: + - 27 + - 1 + idx: 1 + jump_through: false + - pos: + - 28 + - 1 + idx: 1 + jump_through: false + - pos: + - 29 + - 1 + idx: 1 + jump_through: false + - pos: + - 30 + - 1 + idx: 1 + jump_through: false + - pos: + - 31 + - 1 + idx: 2 + jump_through: false + - pos: + - 2 + - 0 + idx: 7 + jump_through: false + - pos: + - 3 + - 0 + idx: 8 + jump_through: false + - pos: + - 4 + - 0 + idx: 8 + jump_through: false + - pos: + - 5 + - 0 + idx: 8 + jump_through: false + - pos: + - 6 + - 0 + idx: 8 + jump_through: false + - pos: + - 7 + - 0 + idx: 8 + jump_through: false + - pos: + - 8 + - 0 + idx: 8 + jump_through: false + - pos: + - 9 + - 0 + idx: 8 + jump_through: false + - pos: + - 10 + - 0 + idx: 8 + jump_through: false + - pos: + - 11 + - 0 + idx: 8 + jump_through: false + - pos: + - 12 + - 0 + idx: 8 + jump_through: false + - pos: + - 13 + - 0 + idx: 8 + jump_through: false + - pos: + - 14 + - 0 + idx: 8 + jump_through: false + - pos: + - 15 + - 0 + idx: 8 + jump_through: false + - pos: + - 16 + - 0 + idx: 8 + jump_through: false + - pos: + - 17 + - 0 + idx: 8 + jump_through: false + - pos: + - 18 + - 0 + idx: 8 + jump_through: false + - pos: + - 19 + - 0 + idx: 8 + jump_through: false + - pos: + - 20 + - 0 + idx: 8 + jump_through: false + - pos: + - 21 + - 0 + idx: 8 + jump_through: false + - pos: + - 22 + - 0 + idx: 8 + jump_through: false + - pos: + - 23 + - 0 + idx: 8 + jump_through: false + - pos: + - 24 + - 0 + idx: 8 + jump_through: false + - pos: + - 25 + - 0 + idx: 8 + jump_through: false + - pos: + - 26 + - 0 + idx: 8 + jump_through: false + - pos: + - 27 + - 0 + idx: 8 + jump_through: false + - pos: + - 28 + - 0 + idx: 8 + jump_through: false + - pos: + - 29 + - 0 + idx: 8 + jump_through: false + - pos: + - 30 + - 0 + idx: 8 + jump_through: false + - pos: + - 31 + - 0 + idx: 9 + jump_through: false + - id: decorations + kind: !element + elements: + - pos: + - 536.0 + - 185.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 216.0 + - 89.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 440.0 + - 89.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 888.0 + - 217.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 760.0 + - 89.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 408.0 + - 281.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 920.0 + - 89.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 120.0 + - 89.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - id: items + kind: !element + elements: + - pos: + - 222.6668 + - 127.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 446.0 + - 185.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 712.0001 + - 73.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 891.3332 + - 241.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 478.6667 + - 265.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 256.0 + - 73.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 652.5714 + - 73.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 456.0 + - 285.5 + element: ../elements/item/kick_bomb/kick_bomb.element.yaml + - pos: + - 1015.1428 + - 95.5 + element: ../elements/item/kick_bomb/kick_bomb.element.yaml + - pos: + - 343.1112 + - 73.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 758.1111 + - 73.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 949.4359 + - 73.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 706.8572 + - 337.5 + element: ../elements/item/sword/sword.element.yaml + - pos: + - 224.0 + - 311.5 + element: ../elements/item/sword/sword.element.yaml + - id: spawners + kind: !element + elements: + - pos: + - 160.0 + - 192.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 320.0 + - 96.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 576.0 + - 192.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 704.0 + - 96.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 800.0 + - 224.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 960.0 + - 96.0 + element: ../elements/environment/player_spawner/player_spawner.element.yaml diff --git a/assets/map/levels/level3.map.json b/assets/map/levels/level3.map.json deleted file mode 100644 index d5fcc9ac70..0000000000 --- a/assets/map/levels/level3.map.json +++ /dev/null @@ -1,2239 +0,0 @@ -{ - "name": "Level 3", - "background_color": "7EA8A6", - "grid_size": [ - 27, - 22 - ], - "tile_size": [ - 32, - 32 - ], - "layers": [ - { - "id": "main layer", - "kind": { - "tile": { - "has_collision": true, - "tiles": [ - { - "pos": [ - 0, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 5, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 7, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 9, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 11, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 19, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 21, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 23, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 21 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 20 - ], - "idx": 4 - }, - { - "pos": [ - 1, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 2, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 3, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 4, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 5, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 6, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 7, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 8, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 9, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 10, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 11, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 12, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 13, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 14, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 15, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 16, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 17, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 18, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 19, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 20, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 21, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 22, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 23, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 24, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 25, - 20 - ], - "idx": 15 - }, - { - "pos": [ - 26, - 20 - ], - "idx": 5 - }, - { - "pos": [ - 0, - 19 - ], - "idx": 9 - }, - { - "pos": [ - 1, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 2, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 3, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 4, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 5, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 6, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 7, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 8, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 9, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 10, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 11, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 12, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 13, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 14, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 15, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 16, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 17, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 18, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 19, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 20, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 21, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 22, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 23, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 24, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 25, - 19 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 26, - 19 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 18 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 18 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 17 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 17 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 16 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 16 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 15 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 15 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 14 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 14 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 13 - ], - "idx": 9 - }, - { - "pos": [ - 1, - 13 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 2, - 13 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 6, - 13 - ], - "idx": 21 - }, - { - "pos": [ - 7, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 8, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 9, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 10, - 13 - ], - "idx": 23 - }, - { - "pos": [ - 16, - 13 - ], - "idx": 21 - }, - { - "pos": [ - 17, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 18, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 19, - 13 - ], - "idx": 22 - }, - { - "pos": [ - 20, - 13 - ], - "idx": 23 - }, - { - "pos": [ - 24, - 13 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 25, - 13 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 26, - 13 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 12 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 12 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 11 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 11 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 10 - ], - "idx": 9 - }, - { - "pos": [ - 1, - 10 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 2, - 10 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 3, - 10 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 23, - 10 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 24, - 10 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 25, - 10 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 26, - 10 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 9 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 9 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 8 - ], - "idx": 9 - }, - { - "pos": [ - 6, - 8 - ], - "idx": 56, - "jump_through": true - }, - { - "pos": [ - 7, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 8, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 9, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 10, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 11, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 12, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 13, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 14, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 15, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 16, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 17, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 18, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 19, - 8 - ], - "idx": 58, - "jump_through": true - }, - { - "pos": [ - 20, - 8 - ], - "idx": 60, - "jump_through": true - }, - { - "pos": [ - 26, - 8 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 7 - ], - "idx": 9 - }, - { - "pos": [ - 26, - 7 - ], - "idx": 7 - }, - { - "pos": [ - 0, - 6 - ], - "idx": 11 - }, - { - "pos": [ - 1, - 6 - ], - "idx": 1 - }, - { - "pos": [ - 2, - 6 - ], - "idx": 2 - }, - { - "pos": [ - 24, - 6 - ], - "idx": 0 - }, - { - "pos": [ - 25, - 6 - ], - "idx": 1 - }, - { - "pos": [ - 26, - 6 - ], - "idx": 12 - }, - { - "pos": [ - 0, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 5 - ], - "idx": 11 - }, - { - "pos": [ - 3, - 5 - ], - "idx": 2 - }, - { - "pos": [ - 23, - 5 - ], - "idx": 0 - }, - { - "pos": [ - 24, - 5 - ], - "idx": 12 - }, - { - "pos": [ - 25, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 5 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 4 - ], - "idx": 9 - }, - { - "pos": [ - 23, - 4 - ], - "idx": 7 - }, - { - "pos": [ - 24, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 4 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 3 - ], - "idx": 11 - }, - { - "pos": [ - 4, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 5, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 6, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 7, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 8, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 9, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 10, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 11, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 12, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 13, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 14, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 15, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 16, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 17, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 18, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 19, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 20, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 21, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 22, - 3 - ], - "idx": 1 - }, - { - "pos": [ - 23, - 3 - ], - "idx": 12 - }, - { - "pos": [ - 24, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 3 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 5, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 7, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 9, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 11, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 17, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 19, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 21, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 2 - ], - "idx": 1 - }, - { - "pos": [ - 23, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 2 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 5, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 7, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 9, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 11, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 19, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 21, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 23, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 1 - ], - "idx": 8 - }, - { - "pos": [ - 0, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 1, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 2, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 3, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 4, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 5, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 6, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 7, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 8, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 9, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 10, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 11, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 12, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 13, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 14, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 15, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 16, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 17, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 18, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 19, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 20, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 21, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 22, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 23, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 24, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 25, - 0 - ], - "idx": 8 - }, - { - "pos": [ - 26, - 0 - ], - "idx": 8 - } - ], - "tilemap": "../resources/default_tileset.png" - } - } - }, - { - "id": "decorations", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 48, - 233.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 820, - 233.5 - ], - "element": "../elements/environment/sproinger/sproinger.element.yaml" - }, - { - "pos": [ - 792, - 249.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 48, - 249.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 312, - 153.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 312, - 473.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 248, - 473.5 - ], - "element": "../elements/decoration/anemones/anemones.element.yaml" - }, - { - "pos": [ - 600, - 473.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - }, - { - "pos": [ - 536, - 153.5 - ], - "element": "../elements/decoration/seaweed/seaweed.element.yaml" - } - ] - } - } - }, - { - "id": "items", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 65.399994, - 471.5 - ], - "element": "../elements/item/grenades/grenades.element.yaml" - }, - { - "pos": [ - 824, - 469.5 - ], - "element": "../elements/item/grenades/grenades.element.yaml" - }, - { - "pos": [ - 441.41045999999994, - 143.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 310.07714, - 203.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 528, - 203.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 304, - 525.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 592, - 513.5 - ], - "element": "../elements/environment/fish_school/fish_school.element.yaml" - }, - { - "pos": [ - 560, - 299.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 296, - 303.5 - ], - "element": "../elements/environment/crab/crab.element.yaml" - }, - { - "pos": [ - 568, - 137.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 328.11425999999994, - 145.5 - ], - "element": "../elements/item/musket/musket.element.yaml" - }, - { - "pos": [ - 416, - 369.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - }, - { - "pos": [ - 568, - 483.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - }, - { - "pos": [ - 308, - 479.5 - ], - "element": "../elements/item/sword/sword.element.yaml" - } - ] - } - } - }, - { - "id": "spawners", - "kind": { - "element": { - "elements": [ - { - "pos": [ - 253.37262, - 487.27 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 572.10425, - 478.44417999999996 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 195.5694, - 173.61493000000002 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - }, - { - "pos": [ - 628.5847, - 161.02252 - ], - "element": "../elements/environment/player_spawner/player_spawner.element.yaml" - } - ] - } - } - } - ], - "background_layers": [ - { - "image": "../resources/background_04.png", - "speed": 0, - "tile_size": [ - 896, - 480 - ], - "z": -110, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_03.png", - "speed": 0.74, - "tile_size": [ - 896, - 480 - ], - "z": -109, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_02.png", - "speed": 0.82, - "tile_size": [ - 896, - 480 - ], - "z": -108, - "position": [ - 0, - 360 - ], - "scale": 2 - }, - { - "image": "../resources/background_01.png", - "speed": 100, - "tile_size": [ - 896, - 480 - ], - "z": -107, - "position": [ - 0, - 360 - ], - "scale": 2 - } - ] -} \ No newline at end of file diff --git a/assets/map/levels/level3.map.yaml b/assets/map/levels/level3.map.yaml new file mode 100644 index 0000000000..d4de664f70 --- /dev/null +++ b/assets/map/levels/level3.map.yaml @@ -0,0 +1,1534 @@ +name: Level 3 +background_layers: + - speed: 0.0 + image: ../resources/background_04.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -110.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.74 + image: ../resources/background_03.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -109.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 0.82 + image: ../resources/background_02.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -108.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 + - speed: 100.0 + image: ../resources/background_01.png + tile_size: + - 896.0 + - 480.0 + cols: 1 + rows: 1 + scale: 2.0 + z: -107.0 + transition_factor: 1.0 + position: + - 0.0 + - 360.0 +background_color: 7EA8A6FF +grid_size: + - 27 + - 22 +tile_size: + - 32 + - 32 +layers: + - id: main layer + kind: !tile + tilemap: ../resources/default_tileset.png + has_collision: true + tiles: + - pos: + - 0 + - 21 + idx: 8 + jump_through: false + - pos: + - 1 + - 21 + idx: 8 + jump_through: false + - pos: + - 2 + - 21 + idx: 8 + jump_through: false + - pos: + - 3 + - 21 + idx: 8 + jump_through: false + - pos: + - 4 + - 21 + idx: 8 + jump_through: false + - pos: + - 5 + - 21 + idx: 8 + jump_through: false + - pos: + - 6 + - 21 + idx: 8 + jump_through: false + - pos: + - 7 + - 21 + idx: 8 + jump_through: false + - pos: + - 8 + - 21 + idx: 8 + jump_through: false + - pos: + - 9 + - 21 + idx: 8 + jump_through: false + - pos: + - 10 + - 21 + idx: 8 + jump_through: false + - pos: + - 11 + - 21 + idx: 8 + jump_through: false + - pos: + - 12 + - 21 + idx: 8 + jump_through: false + - pos: + - 13 + - 21 + idx: 8 + jump_through: false + - pos: + - 14 + - 21 + idx: 8 + jump_through: false + - pos: + - 15 + - 21 + idx: 8 + jump_through: false + - pos: + - 16 + - 21 + idx: 8 + jump_through: false + - pos: + - 17 + - 21 + idx: 8 + jump_through: false + - pos: + - 18 + - 21 + idx: 8 + jump_through: false + - pos: + - 19 + - 21 + idx: 8 + jump_through: false + - pos: + - 20 + - 21 + idx: 8 + jump_through: false + - pos: + - 21 + - 21 + idx: 8 + jump_through: false + - pos: + - 22 + - 21 + idx: 8 + jump_through: false + - pos: + - 23 + - 21 + idx: 8 + jump_through: false + - pos: + - 24 + - 21 + idx: 8 + jump_through: false + - pos: + - 25 + - 21 + idx: 8 + jump_through: false + - pos: + - 26 + - 21 + idx: 8 + jump_through: false + - pos: + - 0 + - 20 + idx: 4 + jump_through: false + - pos: + - 1 + - 20 + idx: 15 + jump_through: false + - pos: + - 2 + - 20 + idx: 15 + jump_through: false + - pos: + - 3 + - 20 + idx: 15 + jump_through: false + - pos: + - 4 + - 20 + idx: 15 + jump_through: false + - pos: + - 5 + - 20 + idx: 15 + jump_through: false + - pos: + - 6 + - 20 + idx: 15 + jump_through: false + - pos: + - 7 + - 20 + idx: 15 + jump_through: false + - pos: + - 8 + - 20 + idx: 15 + jump_through: false + - pos: + - 9 + - 20 + idx: 15 + jump_through: false + - pos: + - 10 + - 20 + idx: 15 + jump_through: false + - pos: + - 11 + - 20 + idx: 15 + jump_through: false + - pos: + - 12 + - 20 + idx: 15 + jump_through: false + - pos: + - 13 + - 20 + idx: 15 + jump_through: false + - pos: + - 14 + - 20 + idx: 15 + jump_through: false + - pos: + - 15 + - 20 + idx: 15 + jump_through: false + - pos: + - 16 + - 20 + idx: 15 + jump_through: false + - pos: + - 17 + - 20 + idx: 15 + jump_through: false + - pos: + - 18 + - 20 + idx: 15 + jump_through: false + - pos: + - 19 + - 20 + idx: 15 + jump_through: false + - pos: + - 20 + - 20 + idx: 15 + jump_through: false + - pos: + - 21 + - 20 + idx: 15 + jump_through: false + - pos: + - 22 + - 20 + idx: 15 + jump_through: false + - pos: + - 23 + - 20 + idx: 15 + jump_through: false + - pos: + - 24 + - 20 + idx: 15 + jump_through: false + - pos: + - 25 + - 20 + idx: 15 + jump_through: false + - pos: + - 26 + - 20 + idx: 5 + jump_through: false + - pos: + - 0 + - 19 + idx: 9 + jump_through: false + - pos: + - 1 + - 19 + idx: 58 + jump_through: true + - pos: + - 2 + - 19 + idx: 58 + jump_through: true + - pos: + - 3 + - 19 + idx: 58 + jump_through: true + - pos: + - 4 + - 19 + idx: 58 + jump_through: true + - pos: + - 5 + - 19 + idx: 58 + jump_through: true + - pos: + - 6 + - 19 + idx: 58 + jump_through: true + - pos: + - 7 + - 19 + idx: 58 + jump_through: true + - pos: + - 8 + - 19 + idx: 58 + jump_through: true + - pos: + - 9 + - 19 + idx: 58 + jump_through: true + - pos: + - 10 + - 19 + idx: 58 + jump_through: true + - pos: + - 11 + - 19 + idx: 58 + jump_through: true + - pos: + - 12 + - 19 + idx: 58 + jump_through: true + - pos: + - 13 + - 19 + idx: 58 + jump_through: true + - pos: + - 14 + - 19 + idx: 58 + jump_through: true + - pos: + - 15 + - 19 + idx: 58 + jump_through: true + - pos: + - 16 + - 19 + idx: 58 + jump_through: true + - pos: + - 17 + - 19 + idx: 58 + jump_through: true + - pos: + - 18 + - 19 + idx: 58 + jump_through: true + - pos: + - 19 + - 19 + idx: 58 + jump_through: true + - pos: + - 20 + - 19 + idx: 58 + jump_through: true + - pos: + - 21 + - 19 + idx: 58 + jump_through: true + - pos: + - 22 + - 19 + idx: 58 + jump_through: true + - pos: + - 23 + - 19 + idx: 58 + jump_through: true + - pos: + - 24 + - 19 + idx: 58 + jump_through: true + - pos: + - 25 + - 19 + idx: 58 + jump_through: true + - pos: + - 26 + - 19 + idx: 7 + jump_through: false + - pos: + - 0 + - 18 + idx: 9 + jump_through: false + - pos: + - 26 + - 18 + idx: 7 + jump_through: false + - pos: + - 0 + - 17 + idx: 9 + jump_through: false + - pos: + - 26 + - 17 + idx: 7 + jump_through: false + - pos: + - 0 + - 16 + idx: 9 + jump_through: false + - pos: + - 26 + - 16 + idx: 7 + jump_through: false + - pos: + - 0 + - 15 + idx: 9 + jump_through: false + - pos: + - 26 + - 15 + idx: 7 + jump_through: false + - pos: + - 0 + - 14 + idx: 9 + jump_through: false + - pos: + - 26 + - 14 + idx: 7 + jump_through: false + - pos: + - 0 + - 13 + idx: 9 + jump_through: false + - pos: + - 1 + - 13 + idx: 58 + jump_through: true + - pos: + - 2 + - 13 + idx: 60 + jump_through: true + - pos: + - 6 + - 13 + idx: 21 + jump_through: false + - pos: + - 7 + - 13 + idx: 22 + jump_through: false + - pos: + - 8 + - 13 + idx: 22 + jump_through: false + - pos: + - 9 + - 13 + idx: 22 + jump_through: false + - pos: + - 10 + - 13 + idx: 23 + jump_through: false + - pos: + - 16 + - 13 + idx: 21 + jump_through: false + - pos: + - 17 + - 13 + idx: 22 + jump_through: false + - pos: + - 18 + - 13 + idx: 22 + jump_through: false + - pos: + - 19 + - 13 + idx: 22 + jump_through: false + - pos: + - 20 + - 13 + idx: 23 + jump_through: false + - pos: + - 24 + - 13 + idx: 56 + jump_through: true + - pos: + - 25 + - 13 + idx: 58 + jump_through: true + - pos: + - 26 + - 13 + idx: 7 + jump_through: false + - pos: + - 0 + - 12 + idx: 9 + jump_through: false + - pos: + - 26 + - 12 + idx: 7 + jump_through: false + - pos: + - 0 + - 11 + idx: 9 + jump_through: false + - pos: + - 26 + - 11 + idx: 7 + jump_through: false + - pos: + - 0 + - 10 + idx: 9 + jump_through: false + - pos: + - 1 + - 10 + idx: 58 + jump_through: true + - pos: + - 2 + - 10 + idx: 58 + jump_through: true + - pos: + - 3 + - 10 + idx: 60 + jump_through: true + - pos: + - 23 + - 10 + idx: 56 + jump_through: true + - pos: + - 24 + - 10 + idx: 58 + jump_through: true + - pos: + - 25 + - 10 + idx: 58 + jump_through: true + - pos: + - 26 + - 10 + idx: 7 + jump_through: false + - pos: + - 0 + - 9 + idx: 9 + jump_through: false + - pos: + - 26 + - 9 + idx: 7 + jump_through: false + - pos: + - 0 + - 8 + idx: 9 + jump_through: false + - pos: + - 6 + - 8 + idx: 56 + jump_through: true + - pos: + - 7 + - 8 + idx: 58 + jump_through: true + - pos: + - 8 + - 8 + idx: 58 + jump_through: true + - pos: + - 9 + - 8 + idx: 58 + jump_through: true + - pos: + - 10 + - 8 + idx: 58 + jump_through: true + - pos: + - 11 + - 8 + idx: 58 + jump_through: true + - pos: + - 12 + - 8 + idx: 58 + jump_through: true + - pos: + - 13 + - 8 + idx: 58 + jump_through: true + - pos: + - 14 + - 8 + idx: 58 + jump_through: true + - pos: + - 15 + - 8 + idx: 58 + jump_through: true + - pos: + - 16 + - 8 + idx: 58 + jump_through: true + - pos: + - 17 + - 8 + idx: 58 + jump_through: true + - pos: + - 18 + - 8 + idx: 58 + jump_through: true + - pos: + - 19 + - 8 + idx: 58 + jump_through: true + - pos: + - 20 + - 8 + idx: 60 + jump_through: true + - pos: + - 26 + - 8 + idx: 7 + jump_through: false + - pos: + - 0 + - 7 + idx: 9 + jump_through: false + - pos: + - 26 + - 7 + idx: 7 + jump_through: false + - pos: + - 0 + - 6 + idx: 11 + jump_through: false + - pos: + - 1 + - 6 + idx: 1 + jump_through: false + - pos: + - 2 + - 6 + idx: 2 + jump_through: false + - pos: + - 24 + - 6 + idx: 0 + jump_through: false + - pos: + - 25 + - 6 + idx: 1 + jump_through: false + - pos: + - 26 + - 6 + idx: 12 + jump_through: false + - pos: + - 0 + - 5 + idx: 8 + jump_through: false + - pos: + - 1 + - 5 + idx: 8 + jump_through: false + - pos: + - 2 + - 5 + idx: 11 + jump_through: false + - pos: + - 3 + - 5 + idx: 2 + jump_through: false + - pos: + - 23 + - 5 + idx: 0 + jump_through: false + - pos: + - 24 + - 5 + idx: 12 + jump_through: false + - pos: + - 25 + - 5 + idx: 8 + jump_through: false + - pos: + - 26 + - 5 + idx: 8 + jump_through: false + - pos: + - 0 + - 4 + idx: 8 + jump_through: false + - pos: + - 1 + - 4 + idx: 8 + jump_through: false + - pos: + - 2 + - 4 + idx: 8 + jump_through: false + - pos: + - 3 + - 4 + idx: 9 + jump_through: false + - pos: + - 23 + - 4 + idx: 7 + jump_through: false + - pos: + - 24 + - 4 + idx: 8 + jump_through: false + - pos: + - 25 + - 4 + idx: 8 + jump_through: false + - pos: + - 26 + - 4 + idx: 8 + jump_through: false + - pos: + - 0 + - 3 + idx: 8 + jump_through: false + - pos: + - 1 + - 3 + idx: 8 + jump_through: false + - pos: + - 2 + - 3 + idx: 8 + jump_through: false + - pos: + - 3 + - 3 + idx: 11 + jump_through: false + - pos: + - 4 + - 3 + idx: 1 + jump_through: false + - pos: + - 5 + - 3 + idx: 1 + jump_through: false + - pos: + - 6 + - 3 + idx: 1 + jump_through: false + - pos: + - 7 + - 3 + idx: 1 + jump_through: false + - pos: + - 8 + - 3 + idx: 1 + jump_through: false + - pos: + - 9 + - 3 + idx: 1 + jump_through: false + - pos: + - 10 + - 3 + idx: 1 + jump_through: false + - pos: + - 11 + - 3 + idx: 1 + jump_through: false + - pos: + - 12 + - 3 + idx: 1 + jump_through: false + - pos: + - 13 + - 3 + idx: 1 + jump_through: false + - pos: + - 14 + - 3 + idx: 1 + jump_through: false + - pos: + - 15 + - 3 + idx: 1 + jump_through: false + - pos: + - 16 + - 3 + idx: 1 + jump_through: false + - pos: + - 17 + - 3 + idx: 1 + jump_through: false + - pos: + - 18 + - 3 + idx: 1 + jump_through: false + - pos: + - 19 + - 3 + idx: 1 + jump_through: false + - pos: + - 20 + - 3 + idx: 1 + jump_through: false + - pos: + - 21 + - 3 + idx: 1 + jump_through: false + - pos: + - 22 + - 3 + idx: 1 + jump_through: false + - pos: + - 23 + - 3 + idx: 12 + jump_through: false + - pos: + - 24 + - 3 + idx: 8 + jump_through: false + - pos: + - 25 + - 3 + idx: 8 + jump_through: false + - pos: + - 26 + - 3 + idx: 8 + jump_through: false + - pos: + - 0 + - 2 + idx: 8 + jump_through: false + - pos: + - 1 + - 2 + idx: 8 + jump_through: false + - pos: + - 2 + - 2 + idx: 8 + jump_through: false + - pos: + - 3 + - 2 + idx: 8 + jump_through: false + - pos: + - 4 + - 2 + idx: 1 + jump_through: false + - pos: + - 5 + - 2 + idx: 8 + jump_through: false + - pos: + - 6 + - 2 + idx: 1 + jump_through: false + - pos: + - 7 + - 2 + idx: 8 + jump_through: false + - pos: + - 8 + - 2 + idx: 1 + jump_through: false + - pos: + - 9 + - 2 + idx: 8 + jump_through: false + - pos: + - 10 + - 2 + idx: 1 + jump_through: false + - pos: + - 11 + - 2 + idx: 8 + jump_through: false + - pos: + - 12 + - 2 + idx: 8 + jump_through: false + - pos: + - 13 + - 2 + idx: 8 + jump_through: false + - pos: + - 14 + - 2 + idx: 8 + jump_through: false + - pos: + - 15 + - 2 + idx: 8 + jump_through: false + - pos: + - 16 + - 2 + idx: 1 + jump_through: false + - pos: + - 17 + - 2 + idx: 8 + jump_through: false + - pos: + - 18 + - 2 + idx: 1 + jump_through: false + - pos: + - 19 + - 2 + idx: 8 + jump_through: false + - pos: + - 20 + - 2 + idx: 1 + jump_through: false + - pos: + - 21 + - 2 + idx: 8 + jump_through: false + - pos: + - 22 + - 2 + idx: 1 + jump_through: false + - pos: + - 23 + - 2 + idx: 8 + jump_through: false + - pos: + - 24 + - 2 + idx: 8 + jump_through: false + - pos: + - 25 + - 2 + idx: 8 + jump_through: false + - pos: + - 26 + - 2 + idx: 8 + jump_through: false + - pos: + - 0 + - 1 + idx: 8 + jump_through: false + - pos: + - 1 + - 1 + idx: 8 + jump_through: false + - pos: + - 2 + - 1 + idx: 8 + jump_through: false + - pos: + - 3 + - 1 + idx: 8 + jump_through: false + - pos: + - 4 + - 1 + idx: 8 + jump_through: false + - pos: + - 5 + - 1 + idx: 8 + jump_through: false + - pos: + - 6 + - 1 + idx: 8 + jump_through: false + - pos: + - 7 + - 1 + idx: 8 + jump_through: false + - pos: + - 8 + - 1 + idx: 8 + jump_through: false + - pos: + - 9 + - 1 + idx: 8 + jump_through: false + - pos: + - 10 + - 1 + idx: 8 + jump_through: false + - pos: + - 11 + - 1 + idx: 8 + jump_through: false + - pos: + - 12 + - 1 + idx: 8 + jump_through: false + - pos: + - 13 + - 1 + idx: 8 + jump_through: false + - pos: + - 14 + - 1 + idx: 8 + jump_through: false + - pos: + - 15 + - 1 + idx: 8 + jump_through: false + - pos: + - 16 + - 1 + idx: 8 + jump_through: false + - pos: + - 17 + - 1 + idx: 8 + jump_through: false + - pos: + - 18 + - 1 + idx: 8 + jump_through: false + - pos: + - 19 + - 1 + idx: 8 + jump_through: false + - pos: + - 20 + - 1 + idx: 8 + jump_through: false + - pos: + - 21 + - 1 + idx: 8 + jump_through: false + - pos: + - 22 + - 1 + idx: 8 + jump_through: false + - pos: + - 23 + - 1 + idx: 8 + jump_through: false + - pos: + - 24 + - 1 + idx: 8 + jump_through: false + - pos: + - 25 + - 1 + idx: 8 + jump_through: false + - pos: + - 26 + - 1 + idx: 8 + jump_through: false + - pos: + - 0 + - 0 + idx: 8 + jump_through: false + - pos: + - 1 + - 0 + idx: 8 + jump_through: false + - pos: + - 2 + - 0 + idx: 8 + jump_through: false + - pos: + - 3 + - 0 + idx: 8 + jump_through: false + - pos: + - 4 + - 0 + idx: 8 + jump_through: false + - pos: + - 5 + - 0 + idx: 8 + jump_through: false + - pos: + - 6 + - 0 + idx: 8 + jump_through: false + - pos: + - 7 + - 0 + idx: 8 + jump_through: false + - pos: + - 8 + - 0 + idx: 8 + jump_through: false + - pos: + - 9 + - 0 + idx: 8 + jump_through: false + - pos: + - 10 + - 0 + idx: 8 + jump_through: false + - pos: + - 11 + - 0 + idx: 8 + jump_through: false + - pos: + - 12 + - 0 + idx: 8 + jump_through: false + - pos: + - 13 + - 0 + idx: 8 + jump_through: false + - pos: + - 14 + - 0 + idx: 8 + jump_through: false + - pos: + - 15 + - 0 + idx: 8 + jump_through: false + - pos: + - 16 + - 0 + idx: 8 + jump_through: false + - pos: + - 17 + - 0 + idx: 8 + jump_through: false + - pos: + - 18 + - 0 + idx: 8 + jump_through: false + - pos: + - 19 + - 0 + idx: 8 + jump_through: false + - pos: + - 20 + - 0 + idx: 8 + jump_through: false + - pos: + - 21 + - 0 + idx: 8 + jump_through: false + - pos: + - 22 + - 0 + idx: 8 + jump_through: false + - pos: + - 23 + - 0 + idx: 8 + jump_through: false + - pos: + - 24 + - 0 + idx: 8 + jump_through: false + - pos: + - 25 + - 0 + idx: 8 + jump_through: false + - pos: + - 26 + - 0 + idx: 8 + jump_through: false + - id: decorations + kind: !element + elements: + - pos: + - 48.0 + - 233.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 820.0 + - 233.5 + element: ../elements/environment/sproinger/sproinger.element.yaml + - pos: + - 792.0 + - 249.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 48.0 + - 249.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 312.0 + - 153.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 312.0 + - 473.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 248.0 + - 473.5 + element: ../elements/decoration/anemones/anemones.element.yaml + - pos: + - 600.0 + - 473.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - pos: + - 536.0 + - 153.5 + element: ../elements/decoration/seaweed/seaweed.element.yaml + - id: items + kind: !element + elements: + - pos: + - 65.399994 + - 471.5 + element: ../elements/item/grenades/grenades.element.yaml + - pos: + - 824.0 + - 469.5 + element: ../elements/item/grenades/grenades.element.yaml + - pos: + - 441.41046 + - 143.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 310.07715 + - 203.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 528.0 + - 203.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 304.0 + - 525.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 592.0 + - 513.5 + element: ../elements/environment/fish_school/fish_school.element.yaml + - pos: + - 560.0 + - 299.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 296.0 + - 303.5 + element: ../elements/environment/crab/crab.element.yaml + - pos: + - 568.0 + - 137.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 328.11426 + - 145.5 + element: ../elements/item/musket/musket.element.yaml + - pos: + - 416.0 + - 369.5 + element: ../elements/item/sword/sword.element.yaml + - pos: + - 568.0 + - 483.5 + element: ../elements/item/sword/sword.element.yaml + - pos: + - 308.0 + - 479.5 + element: ../elements/item/sword/sword.element.yaml + - id: spawners + kind: !element + elements: + - pos: + - 253.37262 + - 487.27 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 572.10425 + - 478.44418 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 195.5694 + - 173.61493 + element: ../elements/environment/player_spawner/player_spawner.element.yaml + - pos: + - 628.5847 + - 161.02252 + element: ../elements/environment/player_spawner/player_spawner.element.yaml From ee5d2eb74fc7cc0363f367b8cc6a30d0f9485a26 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Wed, 23 Nov 2022 16:19:46 -0600 Subject: [PATCH 2/3] Remove Unused Kinematic Body From Decorations --- src/map/elements/decoration.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/map/elements/decoration.rs b/src/map/elements/decoration.rs index 87f8af0224..413c13da57 100644 --- a/src/map/elements/decoration.rs +++ b/src/map/elements/decoration.rs @@ -34,12 +34,6 @@ fn hydrate_decorations( repeat: true, fps: *fps, ..default() - }) - .insert(KinematicBody { - size: Vec2::new(32.0, 8.0), - offset: Vec2::new(0.0, -6.0), - has_mass: false, - ..default() }); } } From dfb89289e302a55696d4776e9bf8d45294d55265 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Wed, 23 Nov 2022 19:43:24 -0600 Subject: [PATCH 3/3] Add Zoom to Camera Controller --- src/camera.rs | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index 9620d773fb..cdfecf9ed7 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -1,7 +1,7 @@ use bevy::render::view::RenderLayers; use bevy_parallax::ParallaxCameraComponent; -use crate::{player::PlayerIdx, prelude::*}; +use crate::{metadata::GameMeta, player::PlayerIdx, prelude::*}; pub struct CameraPlugin; @@ -93,13 +93,24 @@ fn camera_controller( (&mut Transform, &mut OrthographicProjection), (With, Without), >, + windows: Res, + game: Res, ) { - const LERP_FACTOR: f32 = 0.1; + const CAMERA_PADDING: f32 = 300.0; + const MOVE_LERP_FACTOR: f32 = 0.05; + const ZOOM_IN_LERP_FACTOR: f32 = 0.04; + const ZOOM_OUT_LERP_FACTOR: f32 = 0.1; + const MIN_BOUND: f32 = 350.0; let Ok((mut camera_transform, mut projection)) = camera.get_single_mut() else { return; }; + let window = windows.primary(); + let window_aspect = window.physical_width() as f32 / window.physical_height() as f32; + let default_height = game.camera_height as f32; + let default_width = window_aspect * default_height; + let mut middle_point = Vec2::ZERO; let mut min = Vec2::new(100000.0, 100000.0); let mut max = Vec2::new(-100000.0, -100000.0); @@ -118,9 +129,21 @@ fn camera_controller( middle_point /= player_count.max(1) as f32; + let size = (max - min) + CAMERA_PADDING; + let size = size.max(Vec2::splat(MIN_BOUND)); + + let rh = size.y / default_height; + let rw = size.x / default_width; + let r_target = if rh > rw { rh } else { rw }; + let r_diff = r_target - projection.scale; + // We zoom out twice as fast as we zoom in + if r_diff > 0.0 { + projection.scale += r_diff * ZOOM_OUT_LERP_FACTOR; + } else { + projection.scale += r_diff * ZOOM_IN_LERP_FACTOR; + } + let delta = camera_transform.translation.truncate() - middle_point; - let dist = delta * LERP_FACTOR; + let dist = delta * MOVE_LERP_FACTOR; camera_transform.translation -= dist.extend(0.0); - - projection.scale = 1.25; }