gai-godot-games/pathfinding-algorithms/scenes/custom-solver/custom-graph-solver.tscn

42 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-11-12 15:00:58 +01:00
[gd_scene load_steps=6 format=3 uid="uid://g4ggp2goh0di"]
[ext_resource type="Script" path="res://scenes/custom-solver/NavigationGraph.gd" id="1_5s4ud"]
[ext_resource type="Script" path="res://scenes/custom-solver/custom_graph_solver.gd" id="1_tis1c"]
[ext_resource type="Script" path="res://scenes/custom-solver/CustomNavMovement.gd" id="3_4rjft"]
[ext_resource type="Texture2D" uid="uid://c53ftc05so8rx" path="res://icon.svg" id="3_ibv8u"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_gqxbx"]
radius = 24.9999
height = 49.9999
[node name="custom-graph-solver" type="Node2D"]
script = ExtResource("1_tis1c")
2024-11-12 15:39:09 +01:00
[node name="NavPolygon2D_1" type="Polygon2D" parent="."]
2024-11-12 15:00:58 +01:00
polygon = PackedVector2Array(164, 56, 379, 23, 603, 53, 684, 152, 759, 255, 572, 293, 598, 166, 422, 106, 344, 158, 509, 312, 438, 454, 489, 504, 610, 342, 734, 323, 834, 199, 786, 85, 958, 43, 1117, 48, 1109, 194, 1137, 565, 916, 550, 887, 386, 965, 359, 962, 473, 1000, 494, 1002, 204, 928, 184, 916, 304, 837, 382, 835, 541, 752, 563, 732, 421, 627, 450, 592, 618, 335, 540, 295, 412, 361, 311, 190, 169, 194, 329, 278, 510, 132, 589, 133, 459, 77, 311, 48, 130)
[node name="NavGraph" type="Node2D" parent="."]
script = ExtResource("1_5s4ud")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
2024-11-12 15:39:09 +01:00
position = Vector2(310, 140)
2024-11-12 15:00:58 +01:00
scale = Vector2(0.640001, 0.640001)
collision_mask = 3
script = ExtResource("3_4rjft")
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_ibv8u")
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CapsuleShape2D_gqxbx")
[node name="TestPolygon2D" type="Polygon2D" parent="."]
visible = false
invert_border = 0.1
polygon = PackedVector2Array(516, 218, 475, 104, 677, 121, 582, 247, 598, 333, 394, 315)