[gd_scene load_steps=5 format=3 uid="uid://c10oxh5lwghx5"] [ext_resource type="Texture2D" uid="uid://cmoafynkf3uu2" path="res://icon.svg" id="1_qcjqt"] [ext_resource type="Script" path="res://test.gd" id="1_uyyrh"] [sub_resource type="NavigationPolygon" id="NavigationPolygon_a3hvs"] vertices = PackedVector2Array(417, -158, 416, -158, 1288, -179, 780, 669, 1355, 828, 276, 870, 551, 669, 728, 240, 524, 250, -188, 1002, -181, -50) polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(2, 4, 3, 7), PackedInt32Array(0, 2, 7, 8), PackedInt32Array(5, 9, 10, 0, 8, 6)]) outlines = Array[PackedVector2Array]([PackedVector2Array(-201, -68, 413, -178, 1307, -200, 1377, 848, 279, 890, -209, 1029), PackedVector2Array(570, 649, 757, 649, 710, 261, 545, 269)]) source_geometry_group_name = &"navigation_polygon_source_group" agent_radius = 20.0 [sub_resource type="RectangleShape2D" id="RectangleShape2D_mn2sd"] [node name="world" type="Node2D"] position = Vector2(-1, -1) script = ExtResource("1_uyyrh") [node name="nav" type="NavigationRegion2D" parent="."] position = Vector2(-85, -45) navigation_polygon = SubResource("NavigationPolygon_a3hvs") metadata/_edit_lock_ = true [node name="small" type="CharacterBody2D" parent="."] position = Vector2(262, 745) motion_mode = 1 [node name="coll" type="CollisionShape2D" parent="small"] scale = Vector2(6.5, 6.5) shape = SubResource("RectangleShape2D_mn2sd") metadata/_edit_lock_ = true [node name="sprite" type="Sprite2D" parent="small"] texture = ExtResource("1_qcjqt") metadata/_edit_lock_ = true [node name="nav" type="NavigationAgent2D" parent="small"] [node name="cam" type="Camera2D" parent="."] offset = Vector2(200, 320) zoom = Vector2(0.5, 0.5) [node name="large" type="CharacterBody2D" parent="."] position = Vector2(29, 673) motion_mode = 1 [node name="coll" type="CollisionShape2D" parent="large"] scale = Vector2(13, 13) shape = SubResource("RectangleShape2D_mn2sd") metadata/_edit_lock_ = true [node name="sprite" type="Sprite2D" parent="large"] scale = Vector2(2, 2) texture = ExtResource("1_qcjqt") metadata/_edit_lock_ = true [node name="nav" type="NavigationAgent2D" parent="large"] [node name="target" type="Node2D" parent="."] position = Vector2(904, 703)