[gd_scene load_steps=8 format=3 uid="uid://dew8gxu55ex6q"]

[ext_resource type="Script" uid="uid://cjqumk0kw2vte" path="res://scripts/adventurer.gd" id="1_kt0f0"]
[ext_resource type="Texture2D" uid="uid://cg6ptmynq0aq0" path="res://graphics/basic-sprite.png" id="2_i6rus"]
[ext_resource type="PackedScene" uid="uid://jbqw0n6dlj08" path="res://templates/speech_bubble.tscn" id="3_lqojj"]
[ext_resource type="BehaviorTree" uid="uid://dght2flegv70i" path="res://ai/trees/adventurer.tres" id="4_86mwh"]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aos2b"]
radius = 15.0
height = 54.0

[sub_resource type="BlackboardPlan" id="BlackboardPlan_tdl5m"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_aos2b"]
size = Vector2(54, 97)

[node name="AdventurerSprite" type="CharacterBody2D"]
script = ExtResource("1_kt0f0")
movement_speed = 200.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_aos2b")

[node name="Sprite2D" type="Sprite2D" parent="."]
modulate = Color(0, 1, 0, 1)
position = Vector2(0, -43)
texture = ExtResource("2_i6rus")

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
path_desired_distance = 30.0
avoidance_enabled = true

[node name="SpeechBubble" parent="." instance=ExtResource("3_lqojj")]
position = Vector2(39, -110)

[node name="BTPlayer" type="BTPlayer" parent="."]
behavior_tree = ExtResource("4_86mwh")
blackboard_plan = SubResource("BlackboardPlan_tdl5m")

[node name="HoverArea" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="HoverArea"]
position = Vector2(0, -43.5)
shape = SubResource("RectangleShape2D_aos2b")

[connection signal="mouse_entered" from="HoverArea" to="." method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HoverArea" to="." method="_on_mouse_exited"]
