godot-start/scene/demo08_path/tile.tscn

102 lines
6.1 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://b0dm0cogxc3y6"]
[ext_resource type="Script" path="res://scene/demo08_path/script/tile.gd" id="1_6iolp"]
[ext_resource type="Texture2D" uid="uid://b2kiyycgqh3yv" path="res://scene/demo08_path/image/Grasslands.png" id="2_4p2ab"]
[ext_resource type="Texture2D" uid="uid://cdn4iyiywnm2f" path="res://scene/demo08_path/image/Robi.png" id="3_3q3se"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_5gwiy"]
vertices = PackedVector2Array(40, 40, -40, 40, -40, -40, 40, -40)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)])
source_geometry_group_name = &"navigation_polygon_source_group"
agent_radius = 0.0
[sub_resource type="NavigationPolygon" id="NavigationPolygon_3ksr3"]
vertices = PackedVector2Array(40, 40, -40, 40, -40, -40, 40, -40)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)])
source_geometry_group_name = &"navigation_polygon_source_group"
agent_radius = 0.0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_0pcpq"]
texture = ExtResource("2_4p2ab")
texture_region_size = Vector2i(80, 80)
0:0/0 = 0
0:0/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)
2:0/0 = 0
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)
3:0/0 = 0
3:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)
4:0/0 = 0
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)
0:1/0 = 0
0:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
1:1/0 = 0
1:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
2:1/0 = 0
2:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
3:1/0 = 0
3:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
4:1/0 = 0
4:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
5:1/0 = 0
5:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
6:1/0 = 0
6:1/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_5gwiy")
0:2/0 = 0
0:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
1:2/0 = 0
1:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
2:2/0 = 0
2:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
3:2/0 = 0
3:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
4:2/0 = 0
4:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
5:2/0 = 0
5:2/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
0:3/0 = 0
0:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
1:3/0 = 0
1:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
2:3/0 = 0
2:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
3:3/0 = 0
3:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
4:3/0 = 0
4:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
5:3/0 = 0
5:3/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_3ksr3")
[sub_resource type="TileSet" id="TileSet_0evj0"]
tile_size = Vector2i(80, 80)
physics_layer_0/collision_layer = 1
navigation_layer_0/layers = 1
sources/0 = SubResource("TileSetAtlasSource_0pcpq")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_82yhd"]
size = Vector2(18, 16)
[node name="Node2D" type="Node2D"]
script = ExtResource("1_6iolp")
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource("TileSet_0evj0")
format = 2
layer_0/tile_data = PackedInt32Array(0, 0, 0, 1, 0, 0, 2, 0, 0, 65537, 0, 0, 65538, 0, 0, 131074, 0, 0, 131075, 65536, 0, 3, 65536, 0, 4, 0, 0, 65540, 0, 0, 5, 0, 0, 65541, 0, 0, 131077, 0, 0, 131078, 0, 0, 6, 0, 0, 65542, 0, 0, 131079, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 65536, 0, 196612, 0, 0, 196613, 0, 0, 262149, 0, 0, 262150, 131072, 0, 327686, 131072, 0, 327681, 0, 0, 327682, 0, 0, 393218, 0, 0, 393219, 0, 0, 458755, 0, 0, 458756, 0, 0, 327684, 0, 0, 327685, 0, 0, 393222, 131072, 0, 393223, 0, 0, 458760, 0, 0, 196615, 0, 0, 262152, 0, 0, 327689, 196608, 0, 393226, 0, 0, 458763, 262144, 0, 65536, 0, 0, 131072, 0, 0, 196608, 0, 0, 262144, 0, 0, 327680, 0, 0, 393216, 0, 0, 458752, 0, 0, 524288, 0, 0, 131073, 0, 0, 262145, 0, 0, 393217, 0, 0, 458753, 0, 0, 524289, 0, 0, 262146, 0, 0, 458754, 0, 0, 524290, 0, 0, 65539, 65536, 0, 262147, 65536, 0, 327683, 65536, 0, 524291, 0, 0, 131076, 0, 0, 262148, 0, 0, 393220, 0, 0, 524292, 0, 0, 393221, 0, 0, 458757, 0, 0, 524293, 0, 0, 196614, 131072, 0, 458758, 131072, 0, 524294, 131072, 0, 7, 0, 0, 65543, 0, 0, 262151, 0, 0, 327687, 0, 0, 458759, 0, 0, 524295, 0, 0, 8, 0, 0, 65544, 0, 0, 131080, 0, 0, 196616, 0, 0, 327688, 0, 0, 393224, 0, 0, 524296, 0, 0, 9, 196608, 0, 65545, 196608, 0, 131081, 196608, 0, 196617, 196608, 0, 262153, 196608, 0, 393225, 0, 0, 458761, 0, 0, 524297, 0, 0, 10, 0, 0, 65546, 0, 0, 131082, 0, 0, 196618, 0, 0, 262154, 0, 0, 327690, 0, 0, 458762, 0, 0, 524298, 0, 0, 11, 0, 0, 65547, 0, 0, 131083, 0, 0, 196619, 262144, 0, 262155, 65536, 2, 327691, 65536, 2, 393227, 65536, 2, 524299, 0, 0, 12, 0, 0, 65548, 0, 0, 131084, 0, 0, 196620, 262144, 0, 262156, 65536, 2, 327692, 65536, 2, 393228, 65536, 2, 458764, 262144, 0, 524300, 0, 0, 13, 0, 0, 65549, 0, 0, 131085, 0, 0, 196621, 262144, 0, 262157, 65536, 2, 327693, 65536, 2, 393229, 65536, 2, 458765, 262144, 0, 524301, 0, 0, 14, 0, 0, 65550, 0, 0, 131086, 0, 0, 196622, 262144, 0, 262158, 65536, 2, 327694, 65536, 2, 393230, 65536, 2, 458766, 262144, 0, 524302, 0, 0)
[node name="Line2D" type="Line2D" parent="."]
[node name="Player" type="CharacterBody2D" parent="."]
[node name="Sprite2D" type="Sprite2D" parent="Player"]
scale = Vector2(0.205279, 0.205279)
texture = ExtResource("3_3q3se")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource("RectangleShape2D_82yhd")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="Player"]