From 62cf438b0d0f19ff09fcef9d1716939caaa0d2dc Mon Sep 17 00:00:00 2001 From: DIvan2000 Date: Sun, 8 Dec 2024 13:48:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF=D1=83=D1=82=D0=B8=20(?= =?UTF-8?q?=D0=B2=D0=B5=D1=81=20=D1=82=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- world/tile_map.gd | 18 +++++- world/world.tscn | 143 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+), 3 deletions(-) diff --git a/world/tile_map.gd b/world/tile_map.gd index 0329a0f..4a4fd73 100644 --- a/world/tile_map.gd +++ b/world/tile_map.gd @@ -95,7 +95,7 @@ func _ready() -> void: for x in $ground.get_used_rect().size.x: for y in $ground.get_used_rect().size.y: var tile_pos = Vector2i(x,y) - astar_grid.set_point_solid(tile_pos, not is_walkable(tile_pos)) + update_astar_tile(tile_pos) @@ -119,10 +119,12 @@ func place_road(pos: Vector2i) -> bool: if get_maxZ(pos) >= layer.z_index: return false layer.set_cells_terrain_connect([pos], 0, 2, true) + update_astar_tile(pos) return true func erase_road(pos: Vector2i) -> bool: var layer: TileMapLayer = layers_dict["roads"] layer.erase_cell(pos) + update_astar_tile(pos) return true func place_way(pos1: Vector2i, pos2: Vector2i) -> bool: @@ -195,7 +197,7 @@ func remove_struct(pos: Vector2i): var offset = Vector2i(x, y) var tile_pos = pos+offset-half_size layer.erase_cell(tile_pos) - astar_grid.set_point_solid(tile_pos, not is_walkable(tile_pos)) + update_astar_tile(tile_pos) return func place_struct(pos: Vector2i, type: StructType) -> bool: @@ -221,7 +223,7 @@ func place_struct(pos: Vector2i, type: StructType) -> bool: var offset = Vector2i(x, y) var tile_pos = pos+offset-half_size layer.set_cell(tile_pos, source_id, Vector2i(x,y)+pos_atlas) - astar_grid.set_point_solid(tile_pos, not is_walkable(tile_pos)) + update_astar_tile(tile_pos) return true func is_walkable(pos: Vector2i) -> bool: @@ -232,3 +234,13 @@ func is_walkable(pos: Vector2i) -> bool: state = false break return state + +func weight(pos: Vector2i) -> int: + var layer = get_toplayer(pos) + var tiledata: TileData = layer.get_cell_tile_data(pos) + if tiledata != null: return tiledata.get_custom_data("astar_weight") + else: return 5 + +func update_astar_tile(pos: Vector2i): + astar_grid.set_point_solid(pos, not is_walkable(pos)) + astar_grid.set_point_weight_scale(pos, weight(pos)) diff --git a/world/world.tscn b/world/world.tscn index 677d0ac..d2faae2 100644 --- a/world/world.tscn +++ b/world/world.tscn @@ -9,6 +9,7 @@ [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_fyh4j"] texture = ExtResource("3_g3o52") 1:1/0 = 0 +1:1/0/custom_data_5 = 5 0:0/0 = 0 0:0/0/terrain_set = 0 0:0/0/terrain = 0 @@ -21,14 +22,18 @@ texture = ExtResource("3_g3o52") 0:0/0/terrains_peering_bit/top_side = 0 0:0/0/terrains_peering_bit/top_right_corner = 0 0:0/0/custom_data_4 = true +0:0/0/custom_data_5 = 5 0:1/0 = 0 +0:1/0/custom_data_5 = 5 1:0/0 = 0 +1:0/0/custom_data_5 = 5 0:8/0 = 0 0:8/0/terrain_set = 0 0:8/0/terrain = 1 0:8/0/terrains_peering_bit/right_side = 1 0:8/0/terrains_peering_bit/bottom_right_corner = 1 0:8/0/terrains_peering_bit/bottom_side = 1 +0:8/0/custom_data_5 = 5 1:8/0 = 0 1:8/0/terrain_set = 0 1:8/0/terrain = 1 @@ -37,21 +42,25 @@ texture = ExtResource("3_g3o52") 1:8/0/terrains_peering_bit/bottom_side = 1 1:8/0/terrains_peering_bit/bottom_left_corner = 1 1:8/0/terrains_peering_bit/left_side = 1 +1:8/0/custom_data_5 = 5 2:8/0 = 0 2:8/0/terrain_set = 0 2:8/0/terrain = 1 2:8/0/terrains_peering_bit/bottom_side = 1 2:8/0/terrains_peering_bit/bottom_left_corner = 1 2:8/0/terrains_peering_bit/left_side = 1 +2:8/0/custom_data_5 = 5 3:8/0 = 0 3:8/0/terrain_set = 0 3:8/0/terrain = 1 3:8/0/terrains_peering_bit/bottom_side = 1 +3:8/0/custom_data_5 = 5 4:8/0 = 0 4:8/0/terrain_set = 0 4:8/0/terrain = 1 4:8/0/terrains_peering_bit/right_side = 1 4:8/0/terrains_peering_bit/bottom_side = 1 +4:8/0/custom_data_5 = 5 5:8/0 = 0 5:8/0/terrain_set = 0 5:8/0/terrain = 1 @@ -59,6 +68,7 @@ texture = ExtResource("3_g3o52") 5:8/0/terrains_peering_bit/bottom_side = 1 5:8/0/terrains_peering_bit/bottom_left_corner = 1 5:8/0/terrains_peering_bit/left_side = 1 +5:8/0/custom_data_5 = 5 6:8/0 = 0 6:8/0/terrain_set = 0 6:8/0/terrain = 1 @@ -66,17 +76,20 @@ texture = ExtResource("3_g3o52") 6:8/0/terrains_peering_bit/bottom_right_corner = 1 6:8/0/terrains_peering_bit/bottom_side = 1 6:8/0/terrains_peering_bit/left_side = 1 +6:8/0/custom_data_5 = 5 7:8/0 = 0 7:8/0/terrain_set = 0 7:8/0/terrain = 1 7:8/0/terrains_peering_bit/bottom_side = 1 7:8/0/terrains_peering_bit/left_side = 1 +7:8/0/custom_data_5 = 5 8:8/0 = 0 8:8/0/terrain_set = 0 8:8/0/terrain = 1 8:8/0/terrains_peering_bit/right_side = 1 8:8/0/terrains_peering_bit/bottom_side = 1 8:8/0/terrains_peering_bit/left_side = 1 +8:8/0/custom_data_5 = 5 9:8/0 = 0 9:8/0/terrain_set = 0 9:8/0/terrain = 1 @@ -86,6 +99,7 @@ texture = ExtResource("3_g3o52") 9:8/0/terrains_peering_bit/left_side = 1 9:8/0/terrains_peering_bit/top_left_corner = 1 9:8/0/terrains_peering_bit/top_side = 1 +9:8/0/custom_data_5 = 5 9:9/0 = 0 9:9/0/terrain_set = 0 9:9/0/terrain = 1 @@ -95,6 +109,7 @@ texture = ExtResource("3_g3o52") 9:9/0/terrains_peering_bit/left_side = 1 9:9/0/terrains_peering_bit/top_side = 1 9:9/0/terrains_peering_bit/top_right_corner = 1 +9:9/0/custom_data_5 = 5 8:9/0 = 0 8:9/0/terrain_set = 0 8:9/0/terrain = 1 @@ -104,6 +119,7 @@ texture = ExtResource("3_g3o52") 8:9/0/terrains_peering_bit/top_left_corner = 1 8:9/0/terrains_peering_bit/top_side = 1 8:9/0/terrains_peering_bit/top_right_corner = 1 +8:9/0/custom_data_5 = 5 7:9/0 = 0 7:9/0/terrain_set = 0 7:9/0/terrain = 1 @@ -111,6 +127,7 @@ texture = ExtResource("3_g3o52") 7:9/0/terrains_peering_bit/left_side = 1 7:9/0/terrains_peering_bit/top_left_corner = 1 7:9/0/terrains_peering_bit/top_side = 1 +7:9/0/custom_data_5 = 5 6:9/0 = 0 6:9/0/terrain_set = 0 6:9/0/terrain = 1 @@ -121,6 +138,7 @@ texture = ExtResource("3_g3o52") 6:9/0/terrains_peering_bit/top_left_corner = 1 6:9/0/terrains_peering_bit/top_side = 1 6:9/0/terrains_peering_bit/top_right_corner = 1 +6:9/0/custom_data_5 = 5 5:9/0 = 0 5:9/0/terrain_set = 0 5:9/0/terrain = 1 @@ -131,6 +149,7 @@ texture = ExtResource("3_g3o52") 5:9/0/terrains_peering_bit/top_left_corner = 1 5:9/0/terrains_peering_bit/top_side = 1 5:9/0/terrains_peering_bit/top_right_corner = 1 +5:9/0/custom_data_5 = 5 4:9/0 = 0 4:9/0/terrain_set = 0 4:9/0/terrain = 1 @@ -138,11 +157,13 @@ texture = ExtResource("3_g3o52") 4:9/0/terrains_peering_bit/bottom_side = 1 4:9/0/terrains_peering_bit/top_side = 1 4:9/0/terrains_peering_bit/top_right_corner = 1 +4:9/0/custom_data_5 = 5 3:9/0 = 0 3:9/0/terrain_set = 0 3:9/0/terrain = 1 3:9/0/terrains_peering_bit/bottom_side = 1 3:9/0/terrains_peering_bit/top_side = 1 +3:9/0/custom_data_5 = 5 2:9/0 = 0 2:9/0/terrain_set = 0 2:9/0/terrain = 1 @@ -151,6 +172,7 @@ texture = ExtResource("3_g3o52") 2:9/0/terrains_peering_bit/left_side = 1 2:9/0/terrains_peering_bit/top_left_corner = 1 2:9/0/terrains_peering_bit/top_side = 1 +2:9/0/custom_data_5 = 5 0:9/0 = 0 0:9/0/terrain_set = 0 0:9/0/terrain = 1 @@ -159,12 +181,14 @@ texture = ExtResource("3_g3o52") 0:9/0/terrains_peering_bit/bottom_side = 1 0:9/0/terrains_peering_bit/top_side = 1 0:9/0/terrains_peering_bit/top_right_corner = 1 +0:9/0/custom_data_5 = 5 0:10/0 = 0 0:10/0/terrain_set = 0 0:10/0/terrain = 1 0:10/0/terrains_peering_bit/right_side = 1 0:10/0/terrains_peering_bit/top_side = 1 0:10/0/terrains_peering_bit/top_right_corner = 1 +0:10/0/custom_data_5 = 5 1:10/0 = 0 1:10/0/terrain_set = 0 1:10/0/terrain = 1 @@ -173,16 +197,19 @@ texture = ExtResource("3_g3o52") 1:10/0/terrains_peering_bit/top_left_corner = 1 1:10/0/terrains_peering_bit/top_side = 1 1:10/0/terrains_peering_bit/top_right_corner = 1 +1:10/0/custom_data_5 = 5 2:10/0 = 0 2:10/0/terrain_set = 0 2:10/0/terrain = 1 2:10/0/terrains_peering_bit/left_side = 1 2:10/0/terrains_peering_bit/top_left_corner = 1 2:10/0/terrains_peering_bit/top_side = 1 +2:10/0/custom_data_5 = 5 3:10/0 = 0 3:10/0/terrain_set = 0 3:10/0/terrain = 1 3:10/0/terrains_peering_bit/top_side = 1 +3:10/0/custom_data_5 = 5 4:10/0 = 0 4:10/0/terrain_set = 0 4:10/0/terrain = 1 @@ -190,6 +217,7 @@ texture = ExtResource("3_g3o52") 4:10/0/terrains_peering_bit/bottom_right_corner = 1 4:10/0/terrains_peering_bit/bottom_side = 1 4:10/0/terrains_peering_bit/top_side = 1 +4:10/0/custom_data_5 = 5 5:10/0 = 0 5:10/0/terrain_set = 0 5:10/0/terrain = 1 @@ -200,6 +228,7 @@ texture = ExtResource("3_g3o52") 5:10/0/terrains_peering_bit/left_side = 1 5:10/0/terrains_peering_bit/top_left_corner = 1 5:10/0/terrains_peering_bit/top_side = 1 +5:10/0/custom_data_5 = 5 6:10/0 = 0 6:10/0/terrain_set = 0 6:10/0/terrain = 1 @@ -210,6 +239,7 @@ texture = ExtResource("3_g3o52") 6:10/0/terrains_peering_bit/left_side = 1 6:10/0/terrains_peering_bit/top_side = 1 6:10/0/terrains_peering_bit/top_right_corner = 1 +6:10/0/custom_data_5 = 5 7:10/0 = 0 7:10/0/terrain_set = 0 7:10/0/terrain = 1 @@ -217,6 +247,7 @@ texture = ExtResource("3_g3o52") 7:10/0/terrains_peering_bit/bottom_left_corner = 1 7:10/0/terrains_peering_bit/left_side = 1 7:10/0/terrains_peering_bit/top_side = 1 +7:10/0/custom_data_5 = 5 8:10/0 = 0 8:10/0/terrain_set = 0 8:10/0/terrain = 1 @@ -226,6 +257,7 @@ texture = ExtResource("3_g3o52") 8:10/0/terrains_peering_bit/bottom_left_corner = 1 8:10/0/terrains_peering_bit/left_side = 1 8:10/0/terrains_peering_bit/top_side = 1 +8:10/0/custom_data_5 = 5 9:10/0 = 0 9:10/0/terrain_set = 0 9:10/0/terrain = 1 @@ -234,6 +266,7 @@ texture = ExtResource("3_g3o52") 9:10/0/terrains_peering_bit/bottom_side = 1 9:10/0/terrains_peering_bit/left_side = 1 9:10/0/terrains_peering_bit/top_side = 1 +9:10/0/custom_data_5 = 5 10:10/0 = 0 10:10/0/terrain_set = 0 10:10/0/terrain = 1 @@ -242,6 +275,7 @@ texture = ExtResource("3_g3o52") 10:10/0/terrains_peering_bit/bottom_left_corner = 1 10:10/0/terrains_peering_bit/left_side = 1 10:10/0/terrains_peering_bit/top_side = 1 +10:10/0/custom_data_5 = 5 10:11/0 = 0 10:11/0/terrain_set = 0 10:11/0/terrain = 1 @@ -250,6 +284,7 @@ texture = ExtResource("3_g3o52") 10:11/0/terrains_peering_bit/left_side = 1 10:11/0/terrains_peering_bit/top_left_corner = 1 10:11/0/terrains_peering_bit/top_side = 1 +10:11/0/custom_data_5 = 5 9:11/0 = 0 9:11/0/terrain_set = 0 9:11/0/terrain = 1 @@ -258,17 +293,20 @@ texture = ExtResource("3_g3o52") 9:11/0/terrains_peering_bit/left_side = 1 9:11/0/terrains_peering_bit/top_side = 1 9:11/0/terrains_peering_bit/top_right_corner = 1 +9:11/0/custom_data_5 = 5 8:11/0 = 0 8:11/0/terrain_set = 0 8:11/0/terrain = 1 8:11/0/terrains_peering_bit/right_side = 1 8:11/0/terrains_peering_bit/left_side = 1 8:11/0/terrains_peering_bit/top_side = 1 +8:11/0/custom_data_5 = 5 7:11/0 = 0 7:11/0/terrain_set = 0 7:11/0/terrain = 1 7:11/0/terrains_peering_bit/left_side = 1 7:11/0/terrains_peering_bit/top_side = 1 +7:11/0/custom_data_5 = 5 6:11/0 = 0 6:11/0/terrain_set = 0 6:11/0/terrain = 1 @@ -276,6 +314,7 @@ texture = ExtResource("3_g3o52") 6:11/0/terrains_peering_bit/left_side = 1 6:11/0/terrains_peering_bit/top_side = 1 6:11/0/terrains_peering_bit/top_right_corner = 1 +6:11/0/custom_data_5 = 5 5:11/0 = 0 5:11/0/terrain_set = 0 5:11/0/terrain = 1 @@ -283,33 +322,40 @@ texture = ExtResource("3_g3o52") 5:11/0/terrains_peering_bit/left_side = 1 5:11/0/terrains_peering_bit/top_left_corner = 1 5:11/0/terrains_peering_bit/top_side = 1 +5:11/0/custom_data_5 = 5 4:11/0 = 0 4:11/0/terrain_set = 0 4:11/0/terrain = 1 4:11/0/terrains_peering_bit/right_side = 1 4:11/0/terrains_peering_bit/top_side = 1 +4:11/0/custom_data_5 = 5 3:11/0 = 0 3:11/0/terrain_set = 0 3:11/0/terrain = 1 +3:11/0/custom_data_5 = 5 2:11/0 = 0 2:11/0/terrain_set = 0 2:11/0/terrain = 1 2:11/0/terrains_peering_bit/left_side = 1 +2:11/0/custom_data_5 = 5 0:11/0 = 0 0:11/0/terrain_set = 0 0:11/0/terrain = 1 0:11/0/terrains_peering_bit/right_side = 1 +0:11/0/custom_data_5 = 5 1:11/0 = 0 1:11/0/terrain_set = 0 1:11/0/terrain = 1 1:11/0/terrains_peering_bit/right_side = 1 1:11/0/terrains_peering_bit/left_side = 1 +1:11/0/custom_data_5 = 5 4:12/0 = 0 4:12/0/terrain_set = 0 4:12/0/terrain = 1 4:12/0/terrains_peering_bit/right_side = 1 4:12/0/terrains_peering_bit/bottom_side = 1 4:12/0/terrains_peering_bit/top_side = 1 +4:12/0/custom_data_5 = 5 5:12/0 = 0 5:12/0/terrain_set = 0 5:12/0/terrain = 1 @@ -319,6 +365,7 @@ texture = ExtResource("3_g3o52") 5:12/0/terrains_peering_bit/left_side = 1 5:12/0/terrains_peering_bit/top_left_corner = 1 5:12/0/terrains_peering_bit/top_side = 1 +5:12/0/custom_data_5 = 5 6:12/0 = 0 6:12/0/terrain_set = 0 6:12/0/terrain = 1 @@ -328,12 +375,14 @@ texture = ExtResource("3_g3o52") 6:12/0/terrains_peering_bit/left_side = 1 6:12/0/terrains_peering_bit/top_side = 1 6:12/0/terrains_peering_bit/top_right_corner = 1 +6:12/0/custom_data_5 = 5 7:12/0 = 0 7:12/0/terrain_set = 0 7:12/0/terrain = 1 7:12/0/terrains_peering_bit/bottom_side = 1 7:12/0/terrains_peering_bit/left_side = 1 7:12/0/terrains_peering_bit/top_side = 1 +7:12/0/custom_data_5 = 5 8:12/0 = 0 8:12/0/terrain_set = 0 8:12/0/terrain = 1 @@ -341,6 +390,7 @@ texture = ExtResource("3_g3o52") 8:12/0/terrains_peering_bit/bottom_side = 1 8:12/0/terrains_peering_bit/left_side = 1 8:12/0/terrains_peering_bit/top_side = 1 +8:12/0/custom_data_5 = 5 0:3/0 = 0 0:3/0/terrain_set = 0 0:3/0/terrain = 2 @@ -348,6 +398,7 @@ texture = ExtResource("3_g3o52") 0:3/0/terrains_peering_bit/bottom_right_corner = 2 0:3/0/terrains_peering_bit/bottom_side = 2 0:3/0/custom_data_4 = true +0:3/0/custom_data_5 = 3 0:4/0 = 0 0:4/0/terrain_set = 0 0:4/0/terrain = 2 @@ -357,6 +408,7 @@ texture = ExtResource("3_g3o52") 0:4/0/terrains_peering_bit/top_side = 2 0:4/0/terrains_peering_bit/top_right_corner = 2 0:4/0/custom_data_4 = true +0:4/0/custom_data_5 = 3 0:5/0 = 0 0:5/0/terrain_set = 0 0:5/0/terrain = 2 @@ -364,11 +416,13 @@ texture = ExtResource("3_g3o52") 0:5/0/terrains_peering_bit/top_side = 2 0:5/0/terrains_peering_bit/top_right_corner = 2 0:5/0/custom_data_4 = true +0:5/0/custom_data_5 = 3 0:6/0 = 0 0:6/0/terrain_set = 0 0:6/0/terrain = 2 0:6/0/terrains_peering_bit/right_side = 2 0:6/0/custom_data_4 = true +0:6/0/custom_data_5 = 3 1:3/0 = 0 1:3/0/terrain_set = 0 1:3/0/terrain = 2 @@ -378,6 +432,7 @@ texture = ExtResource("3_g3o52") 1:3/0/terrains_peering_bit/bottom_left_corner = 2 1:3/0/terrains_peering_bit/left_side = 2 1:3/0/custom_data_4 = true +1:3/0/custom_data_5 = 3 1:4/0 = 0 1:4/0/terrain_set = 0 1:4/0/terrain = 2 @@ -390,6 +445,7 @@ texture = ExtResource("3_g3o52") 1:4/0/terrains_peering_bit/top_side = 2 1:4/0/terrains_peering_bit/top_right_corner = 2 1:4/0/custom_data_4 = true +1:4/0/custom_data_5 = 3 1:5/0 = 0 1:5/0/terrain_set = 0 1:5/0/terrain = 2 @@ -399,12 +455,14 @@ texture = ExtResource("3_g3o52") 1:5/0/terrains_peering_bit/top_side = 2 1:5/0/terrains_peering_bit/top_right_corner = 2 1:5/0/custom_data_4 = true +1:5/0/custom_data_5 = 3 1:6/0 = 0 1:6/0/terrain_set = 0 1:6/0/terrain = 2 1:6/0/terrains_peering_bit/right_side = 2 1:6/0/terrains_peering_bit/left_side = 2 1:6/0/custom_data_4 = true +1:6/0/custom_data_5 = 3 2:3/0 = 0 2:3/0/terrain_set = 0 2:3/0/terrain = 2 @@ -412,6 +470,7 @@ texture = ExtResource("3_g3o52") 2:3/0/terrains_peering_bit/bottom_left_corner = 2 2:3/0/terrains_peering_bit/left_side = 2 2:3/0/custom_data_4 = true +2:3/0/custom_data_5 = 3 2:4/0 = 0 2:4/0/terrain_set = 0 2:4/0/terrain = 2 @@ -421,6 +480,7 @@ texture = ExtResource("3_g3o52") 2:4/0/terrains_peering_bit/top_left_corner = 2 2:4/0/terrains_peering_bit/top_side = 2 2:4/0/custom_data_4 = true +2:4/0/custom_data_5 = 3 2:5/0 = 0 2:5/0/terrain_set = 0 2:5/0/terrain = 2 @@ -428,37 +488,44 @@ texture = ExtResource("3_g3o52") 2:5/0/terrains_peering_bit/top_left_corner = 2 2:5/0/terrains_peering_bit/top_side = 2 2:5/0/custom_data_4 = true +2:5/0/custom_data_5 = 3 2:6/0 = 0 2:6/0/terrain_set = 0 2:6/0/terrain = 2 2:6/0/terrains_peering_bit/left_side = 2 2:6/0/custom_data_4 = true +2:6/0/custom_data_5 = 3 3:3/0 = 0 3:3/0/terrain_set = 0 3:3/0/terrain = 2 3:3/0/terrains_peering_bit/bottom_side = 2 3:3/0/custom_data_4 = true +3:3/0/custom_data_5 = 3 3:4/0 = 0 3:4/0/terrain_set = 0 3:4/0/terrain = 2 3:4/0/terrains_peering_bit/bottom_side = 2 3:4/0/terrains_peering_bit/top_side = 2 3:4/0/custom_data_4 = true +3:4/0/custom_data_5 = 3 3:5/0 = 0 3:5/0/terrain_set = 0 3:5/0/terrain = 2 3:5/0/terrains_peering_bit/top_side = 2 3:5/0/custom_data_4 = true +3:5/0/custom_data_5 = 3 3:6/0 = 0 3:6/0/terrain_set = 0 3:6/0/terrain = 2 3:6/0/custom_data_4 = true +3:6/0/custom_data_5 = 3 4:3/0 = 0 4:3/0/terrain_set = 0 4:3/0/terrain = 2 4:3/0/terrains_peering_bit/right_side = 2 4:3/0/terrains_peering_bit/bottom_side = 2 4:3/0/custom_data_4 = true +4:3/0/custom_data_5 = 3 4:4/0 = 0 4:4/0/terrain_set = 0 4:4/0/terrain = 2 @@ -467,6 +534,7 @@ texture = ExtResource("3_g3o52") 4:4/0/terrains_peering_bit/top_side = 2 4:4/0/terrains_peering_bit/top_right_corner = 2 4:4/0/custom_data_4 = true +4:4/0/custom_data_5 = 3 4:5/0 = 0 4:5/0/terrain_set = 0 4:5/0/terrain = 2 @@ -475,12 +543,14 @@ texture = ExtResource("3_g3o52") 4:5/0/terrains_peering_bit/bottom_side = 2 4:5/0/terrains_peering_bit/top_side = 2 4:5/0/custom_data_4 = true +4:5/0/custom_data_5 = 3 4:6/0 = 0 4:6/0/terrain_set = 0 4:6/0/terrain = 2 4:6/0/terrains_peering_bit/right_side = 2 4:6/0/terrains_peering_bit/top_side = 2 4:6/0/custom_data_4 = true +4:6/0/custom_data_5 = 3 5:3/0 = 0 5:3/0/terrain_set = 0 5:3/0/terrain = 2 @@ -489,6 +559,7 @@ texture = ExtResource("3_g3o52") 5:3/0/terrains_peering_bit/bottom_left_corner = 2 5:3/0/terrains_peering_bit/left_side = 2 5:3/0/custom_data_4 = true +5:3/0/custom_data_5 = 3 5:4/0 = 0 5:4/0/terrain_set = 0 5:4/0/terrain = 2 @@ -500,6 +571,7 @@ texture = ExtResource("3_g3o52") 5:4/0/terrains_peering_bit/top_side = 2 5:4/0/terrains_peering_bit/top_right_corner = 2 5:4/0/custom_data_4 = true +5:4/0/custom_data_5 = 3 5:5/0 = 0 5:5/0/terrain_set = 0 5:5/0/terrain = 2 @@ -511,6 +583,7 @@ texture = ExtResource("3_g3o52") 5:5/0/terrains_peering_bit/top_left_corner = 2 5:5/0/terrains_peering_bit/top_side = 2 5:5/0/custom_data_4 = true +5:5/0/custom_data_5 = 3 5:6/0 = 0 5:6/0/terrain_set = 0 5:6/0/terrain = 2 @@ -519,6 +592,7 @@ texture = ExtResource("3_g3o52") 5:6/0/terrains_peering_bit/top_left_corner = 2 5:6/0/terrains_peering_bit/top_side = 2 5:6/0/custom_data_4 = true +5:6/0/custom_data_5 = 3 6:3/0 = 0 6:3/0/terrain_set = 0 6:3/0/terrain = 2 @@ -527,6 +601,7 @@ texture = ExtResource("3_g3o52") 6:3/0/terrains_peering_bit/bottom_side = 2 6:3/0/terrains_peering_bit/left_side = 2 6:3/0/custom_data_4 = true +6:3/0/custom_data_5 = 3 6:4/0 = 0 6:4/0/terrain_set = 0 6:4/0/terrain = 2 @@ -538,6 +613,7 @@ texture = ExtResource("3_g3o52") 6:4/0/terrains_peering_bit/top_side = 2 6:4/0/terrains_peering_bit/top_right_corner = 2 6:4/0/custom_data_4 = true +6:4/0/custom_data_5 = 3 6:5/0 = 0 6:5/0/terrain_set = 0 6:5/0/terrain = 2 @@ -549,6 +625,7 @@ texture = ExtResource("3_g3o52") 6:5/0/terrains_peering_bit/top_side = 2 6:5/0/terrains_peering_bit/top_right_corner = 2 6:5/0/custom_data_4 = true +6:5/0/custom_data_5 = 3 6:6/0 = 0 6:6/0/terrain_set = 0 6:6/0/terrain = 2 @@ -557,12 +634,14 @@ texture = ExtResource("3_g3o52") 6:6/0/terrains_peering_bit/top_side = 2 6:6/0/terrains_peering_bit/top_right_corner = 2 6:6/0/custom_data_4 = true +6:6/0/custom_data_5 = 3 7:3/0 = 0 7:3/0/terrain_set = 0 7:3/0/terrain = 2 7:3/0/terrains_peering_bit/bottom_side = 2 7:3/0/terrains_peering_bit/left_side = 2 7:3/0/custom_data_4 = true +7:3/0/custom_data_5 = 3 7:4/0 = 0 7:4/0/terrain_set = 0 7:4/0/terrain = 2 @@ -571,6 +650,7 @@ texture = ExtResource("3_g3o52") 7:4/0/terrains_peering_bit/top_left_corner = 2 7:4/0/terrains_peering_bit/top_side = 2 7:4/0/custom_data_4 = true +7:4/0/custom_data_5 = 3 7:5/0 = 0 7:5/0/terrain_set = 0 7:5/0/terrain = 2 @@ -579,12 +659,14 @@ texture = ExtResource("3_g3o52") 7:5/0/terrains_peering_bit/left_side = 2 7:5/0/terrains_peering_bit/top_side = 2 7:5/0/custom_data_4 = true +7:5/0/custom_data_5 = 3 7:6/0 = 0 7:6/0/terrain_set = 0 7:6/0/terrain = 2 7:6/0/terrains_peering_bit/left_side = 2 7:6/0/terrains_peering_bit/top_side = 2 7:6/0/custom_data_4 = true +7:6/0/custom_data_5 = 3 8:3/0 = 0 8:3/0/terrain_set = 0 8:3/0/terrain = 2 @@ -592,6 +674,7 @@ texture = ExtResource("3_g3o52") 8:3/0/terrains_peering_bit/bottom_side = 2 8:3/0/terrains_peering_bit/left_side = 2 8:3/0/custom_data_4 = true +8:3/0/custom_data_5 = 3 8:4/0 = 0 8:4/0/terrain_set = 0 8:4/0/terrain = 2 @@ -602,6 +685,7 @@ texture = ExtResource("3_g3o52") 8:4/0/terrains_peering_bit/top_side = 2 8:4/0/terrains_peering_bit/top_right_corner = 2 8:4/0/custom_data_4 = true +8:4/0/custom_data_5 = 3 8:5/0 = 0 8:5/0/terrain_set = 0 8:5/0/terrain = 2 @@ -612,6 +696,7 @@ texture = ExtResource("3_g3o52") 8:5/0/terrains_peering_bit/left_side = 2 8:5/0/terrains_peering_bit/top_side = 2 8:5/0/custom_data_4 = true +8:5/0/custom_data_5 = 3 8:6/0 = 0 8:6/0/terrain_set = 0 8:6/0/terrain = 2 @@ -619,6 +704,7 @@ texture = ExtResource("3_g3o52") 8:6/0/terrains_peering_bit/left_side = 2 8:6/0/terrains_peering_bit/top_side = 2 8:6/0/custom_data_4 = true +8:6/0/custom_data_5 = 3 9:3/0 = 0 9:3/0/terrain_set = 0 9:3/0/terrain = 2 @@ -629,6 +715,7 @@ texture = ExtResource("3_g3o52") 9:3/0/terrains_peering_bit/top_left_corner = 2 9:3/0/terrains_peering_bit/top_side = 2 9:3/0/custom_data_4 = true +9:3/0/custom_data_5 = 3 9:4/0 = 0 9:4/0/terrain_set = 0 9:4/0/terrain = 2 @@ -639,6 +726,7 @@ texture = ExtResource("3_g3o52") 9:4/0/terrains_peering_bit/top_side = 2 9:4/0/terrains_peering_bit/top_right_corner = 2 9:4/0/custom_data_4 = true +9:4/0/custom_data_5 = 3 9:5/0 = 0 9:5/0/terrain_set = 0 9:5/0/terrain = 2 @@ -648,6 +736,7 @@ texture = ExtResource("3_g3o52") 9:5/0/terrains_peering_bit/left_side = 2 9:5/0/terrains_peering_bit/top_side = 2 9:5/0/custom_data_4 = true +9:5/0/custom_data_5 = 3 9:6/0 = 0 9:6/0/terrain_set = 0 9:6/0/terrain = 2 @@ -657,6 +746,7 @@ texture = ExtResource("3_g3o52") 9:6/0/terrains_peering_bit/top_side = 2 9:6/0/terrains_peering_bit/top_right_corner = 2 9:6/0/custom_data_4 = true +9:6/0/custom_data_5 = 3 10:5/0 = 0 10:5/0/terrain_set = 0 10:5/0/terrain = 2 @@ -666,6 +756,7 @@ texture = ExtResource("3_g3o52") 10:5/0/terrains_peering_bit/left_side = 2 10:5/0/terrains_peering_bit/top_side = 2 10:5/0/custom_data_4 = true +10:5/0/custom_data_5 = 3 10:6/0 = 0 10:6/0/terrain_set = 0 10:6/0/terrain = 2 @@ -675,6 +766,7 @@ texture = ExtResource("3_g3o52") 10:6/0/terrains_peering_bit/top_left_corner = 2 10:6/0/terrains_peering_bit/top_side = 2 10:6/0/custom_data_4 = true +10:6/0/custom_data_5 = 3 4:7/0 = 0 4:7/0/terrain_set = 0 4:7/0/terrain = 2 @@ -682,6 +774,7 @@ texture = ExtResource("3_g3o52") 4:7/0/terrains_peering_bit/bottom_side = 2 4:7/0/terrains_peering_bit/top_side = 2 4:7/0/custom_data_4 = true +4:7/0/custom_data_5 = 3 5:7/0 = 0 5:7/0/terrain_set = 0 5:7/0/terrain = 2 @@ -692,6 +785,7 @@ texture = ExtResource("3_g3o52") 5:7/0/terrains_peering_bit/top_left_corner = 2 5:7/0/terrains_peering_bit/top_side = 2 5:7/0/custom_data_4 = true +5:7/0/custom_data_5 = 3 6:7/0 = 0 6:7/0/terrain_set = 0 6:7/0/terrain = 2 @@ -702,6 +796,7 @@ texture = ExtResource("3_g3o52") 6:7/0/terrains_peering_bit/top_side = 2 6:7/0/terrains_peering_bit/top_right_corner = 2 6:7/0/custom_data_4 = true +6:7/0/custom_data_5 = 3 7:7/0 = 0 7:7/0/terrain_set = 0 7:7/0/terrain = 2 @@ -709,6 +804,7 @@ texture = ExtResource("3_g3o52") 7:7/0/terrains_peering_bit/left_side = 2 7:7/0/terrains_peering_bit/top_side = 2 7:7/0/custom_data_4 = true +7:7/0/custom_data_5 = 3 8:7/0 = 0 8:7/0/terrain_set = 0 8:7/0/terrain = 2 @@ -717,6 +813,7 @@ texture = ExtResource("3_g3o52") 8:7/0/terrains_peering_bit/left_side = 2 8:7/0/terrains_peering_bit/top_side = 2 8:7/0/custom_data_4 = true +8:7/0/custom_data_5 = 3 1:9/0 = 0 1:9/0/terrain_set = 0 1:9/0/terrain = 1 @@ -728,128 +825,172 @@ texture = ExtResource("3_g3o52") 1:9/0/terrains_peering_bit/top_left_corner = 1 1:9/0/terrains_peering_bit/top_side = 1 1:9/0/terrains_peering_bit/top_right_corner = 1 +1:9/0/custom_data_5 = 5 [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_mv7cw"] texture = ExtResource("4_xeinu") 0:0/0 = 0 0:0/0/custom_data_3 = Vector2i(1, 1) +0:0/0/custom_data_5 = 255 1:0/0 = 0 1:0/0/custom_data_3 = Vector2i(1, 1) +1:0/0/custom_data_5 = 1 2:0/0 = 0 2:0/0/custom_data_3 = Vector2i(0, 1) 2:0/0/custom_data_4 = true +2:0/0/custom_data_5 = 2 3:0/0 = 0 3:0/0/custom_data_3 = Vector2i(-1, 1) +3:0/0/custom_data_5 = 255 4:0/0 = 0 4:0/0/custom_data_3 = Vector2i(-1, 1) +4:0/0/custom_data_5 = 255 0:1/0 = 0 0:1/0/custom_data_3 = Vector2i(1, 1) +0:1/0/custom_data_5 = 255 1:1/0 = 0 1:1/0/custom_data_3 = Vector2i(1, 1) 1:1/0/custom_data_4 = true +1:1/0/custom_data_5 = 1 2:1/0 = 0 2:1/0/custom_data_3 = Vector2i(0, 1) 2:1/0/custom_data_4 = true +2:1/0/custom_data_5 = 1 3:1/0 = 0 3:1/0/custom_data_3 = Vector2i(-1, 1) 3:1/0/custom_data_4 = true +3:1/0/custom_data_5 = 1 4:1/0 = 0 4:1/0/custom_data_3 = Vector2i(-1, 1) +4:1/0/custom_data_5 = 255 0:2/0 = 0 0:2/0/custom_data_3 = Vector2i(1, 0) 0:2/0/custom_data_4 = true +0:2/0/custom_data_5 = 2 1:2/0 = 0 1:2/0/custom_data_3 = Vector2i(1, 0) 1:2/0/custom_data_4 = true +1:2/0/custom_data_5 = 1 2:2/0 = 0 2:2/0/custom_data_0 = true 2:2/0/custom_data_1 = Vector2i(5, 5) 2:2/0/custom_data_2 = "EMPTY_ROOM" 2:2/0/custom_data_4 = true +2:2/0/custom_data_5 = 1 3:2/0 = 0 3:2/0/custom_data_3 = Vector2i(-1, 0) 3:2/0/custom_data_4 = true +3:2/0/custom_data_5 = 1 4:2/0 = 0 4:2/0/custom_data_3 = Vector2i(-1, 0) 4:2/0/custom_data_4 = true +4:2/0/custom_data_5 = 2 0:3/0 = 0 0:3/0/custom_data_3 = Vector2i(1, -1) +0:3/0/custom_data_5 = 255 1:3/0 = 0 1:3/0/custom_data_3 = Vector2i(1, -1) 1:3/0/custom_data_4 = true +1:3/0/custom_data_5 = 1 2:3/0 = 0 2:3/0/custom_data_3 = Vector2i(0, -1) 2:3/0/custom_data_4 = true +2:3/0/custom_data_5 = 1 3:3/0 = 0 3:3/0/custom_data_3 = Vector2i(-1, -1) 3:3/0/custom_data_4 = true +3:3/0/custom_data_5 = 1 4:3/0 = 0 4:3/0/custom_data_3 = Vector2i(-1, -1) +4:3/0/custom_data_5 = 255 0:4/0 = 0 0:4/0/custom_data_3 = Vector2i(1, -1) +0:4/0/custom_data_5 = 255 1:4/0 = 0 1:4/0/custom_data_3 = Vector2i(1, -1) +1:4/0/custom_data_5 = 255 2:4/0 = 0 2:4/0/custom_data_3 = Vector2i(0, -1) 2:4/0/custom_data_4 = true +2:4/0/custom_data_5 = 2 3:4/0 = 0 3:4/0/custom_data_3 = Vector2i(-1, -1) +3:4/0/custom_data_5 = 255 4:4/0 = 0 4:4/0/custom_data_3 = Vector2i(-1, -1) +4:4/0/custom_data_5 = 255 1:5/0 = 0 1:5/0/custom_data_0 = true 1:5/0/custom_data_1 = Vector2i(3, 1) 1:5/0/custom_data_3 = Vector2i(0, 1) 1:5/0/custom_data_4 = true +1:5/0/custom_data_5 = 1 2:5/0 = 0 2:5/0/custom_data_3 = Vector2i(-1, 1) +2:5/0/custom_data_5 = 255 3:5/0 = 0 3:5/0/custom_data_3 = Vector2i(1, 1) +3:5/0/custom_data_5 = 255 1:6/0 = 0 1:6/0/custom_data_0 = true 1:6/0/custom_data_1 = Vector2i(3, 1) 1:6/0/custom_data_2 = "V_WAY" 1:6/0/custom_data_4 = true +1:6/0/custom_data_5 = 1 2:6/0 = 0 2:6/0/custom_data_3 = Vector2i(-1, 0) +2:6/0/custom_data_5 = 255 3:6/0 = 0 3:6/0/custom_data_0 = true 3:6/0/custom_data_1 = Vector2i(1, 3) 3:6/0/custom_data_3 = Vector2i(1, 0) 3:6/0/custom_data_4 = true +3:6/0/custom_data_5 = 1 1:7/0 = 0 1:7/0/custom_data_0 = true 1:7/0/custom_data_1 = Vector2i(3, 1) 1:7/0/custom_data_3 = Vector2i(0, -1) 1:7/0/custom_data_4 = true +1:7/0/custom_data_5 = 1 2:7/0 = 0 2:7/0/custom_data_3 = Vector2i(-1, -1) +2:7/0/custom_data_5 = 255 3:7/0 = 0 3:7/0/custom_data_3 = Vector2i(1, -1) +3:7/0/custom_data_5 = 255 0:5/0 = 0 0:5/0/custom_data_3 = Vector2i(1, 1) +0:5/0/custom_data_5 = 255 0:6/0 = 0 0:6/0/custom_data_3 = Vector2i(1, 0) +0:6/0/custom_data_5 = 255 0:7/0 = 0 0:7/0/custom_data_3 = Vector2i(1, -1) +0:7/0/custom_data_5 = 255 4:7/0 = 0 4:7/0/custom_data_3 = Vector2i(0, -1) +4:7/0/custom_data_5 = 255 4:6/0 = 0 4:6/0/custom_data_0 = true 4:6/0/custom_data_1 = Vector2i(1, 3) 4:6/0/custom_data_2 = "H_WAY" 4:6/0/custom_data_4 = true +4:6/0/custom_data_5 = 1 4:5/0 = 0 4:5/0/custom_data_3 = Vector2i(0, 1) +4:5/0/custom_data_5 = 255 5:5/0 = 0 5:5/0/custom_data_3 = Vector2i(-1, 1) +5:5/0/custom_data_5 = 255 5:6/0 = 0 5:6/0/custom_data_0 = true 5:6/0/custom_data_1 = Vector2i(1, 3) 5:6/0/custom_data_3 = Vector2i(-1, 0) 5:6/0/custom_data_4 = true +5:6/0/custom_data_5 = 1 5:7/0 = 0 5:7/0/custom_data_3 = Vector2i(-1, -1) +5:7/0/custom_data_5 = 255 [sub_resource type="TileSet" id="TileSet_twrk0"] terrain_set_0/mode = 0 @@ -869,6 +1010,8 @@ custom_data_layer_3/name = "center_direction" custom_data_layer_3/type = 6 custom_data_layer_4/name = "walkable" custom_data_layer_4/type = 1 +custom_data_layer_5/name = "astar_weight" +custom_data_layer_5/type = 2 sources/0 = SubResource("TileSetAtlasSource_fyh4j") sources/1 = SubResource("TileSetAtlasSource_mv7cw")