[gd_scene load_steps=6 format=3 uid="uid://dau1xpov0ke0n"] [ext_resource type="PackedScene" uid="uid://dy22higrwdqs6" path="res://scenes/wall.tscn" id="1_thuyn"] [ext_resource type="Script" path="res://character.gd" id="2_1xg74"] [ext_resource type="Texture2D" uid="uid://c53ftc05so8rx" path="res://icon.svg" id="3_4ng2x"] [sub_resource type="NavigationPolygon" id="NavigationPolygon_6menk"] vertices = PackedVector2Array(771.227, 352.719, 859.359, 629.172, 10.9531, 639.867, 8.04688, 12.8594, 716.352, 232.773, 1102.45, 103.406, 1144.2, 472.531, 892.82, 355.148, 942.891, 552.5, 667.352, 67.3984) polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(6, 8, 7), PackedInt32Array(4, 7, 0), PackedInt32Array(3, 9, 4)]) outlines = Array[PackedVector2Array]([PackedVector2Array(-2, 2, 675, 58, 723, 220, 1111, 90, 1155, 479, 936, 566, 885, 365, 785, 363, 873, 639, 1, 650)]) [sub_resource type="RectangleShape2D" id="RectangleShape2D_axamc"] size = Vector2(50, 50) [node name="Main" type="Node2D"] [node name="NavigationRegion2D" type="NavigationRegion2D" parent="."] navigation_polygon = SubResource("NavigationPolygon_6menk") [node name="walls" type="Node2D" parent="."] [node name="Wall1" parent="walls" instance=ExtResource("1_thuyn")] position = Vector2(348, 498) scale = Vector2(20, 1) [node name="Wall2" parent="walls" instance=ExtResource("1_thuyn")] position = Vector2(174, 253) scale = Vector2(10, 1) [node name="CharacterBody2D" type="CharacterBody2D" parent="." node_paths=PackedStringArray("nav")] position = Vector2(486, 349) collision_mask = 3 script = ExtResource("2_1xg74") nav = NodePath("NavigationAgent2D") metadata/_edit_group_ = true [node name="NavigationAgent2D" type="NavigationAgent2D" parent="CharacterBody2D"] debug_enabled = true [node name="Icon" type="Sprite2D" parent="CharacterBody2D"] scale = Vector2(0.4, 0.4) texture = ExtResource("3_4ng2x") [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] shape = SubResource("RectangleShape2D_axamc")