109 lines
3.3 KiB
Plaintext
109 lines
3.3 KiB
Plaintext
[gd_scene load_steps=22 format=3 uid="uid://c413oatj0eqhu"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bue73voyg0m8a" path="res://temp_res/kenney_tiny-dungeon/Tiles/tile_0099.png" id="1_aultg"]
|
|
[ext_resource type="Script" path="res://scripts/Student.cs" id="1_oesea"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_opr6h"]
|
|
size = Vector2(65, 74)
|
|
|
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_pdckj"]
|
|
var/Stayed/name = &"Stayed"
|
|
var/Stayed/type = 3
|
|
var/Stayed/value = 0.0
|
|
var/Stayed/hint = 0
|
|
var/Stayed/hint_string = ""
|
|
|
|
[sub_resource type="BBVariant" id="BBVariant_0reab"]
|
|
resource_name = "0"
|
|
saved_value = 0
|
|
type = 2
|
|
|
|
[sub_resource type="BBNode" id="BBNode_ae20x"]
|
|
resource_name = "."
|
|
saved_value = NodePath(".")
|
|
|
|
[sub_resource type="BTCallMethod" id="BTCallMethod_6osdv"]
|
|
node = SubResource("BBNode_ae20x")
|
|
method = &"GoTo"
|
|
args = Array[BBVariant]([SubResource("BBVariant_0reab")])
|
|
|
|
[sub_resource type="BBVariant" id="BBVariant_r6svu"]
|
|
resource_name = "1"
|
|
saved_value = 1
|
|
type = 2
|
|
|
|
[sub_resource type="BBNode" id="BBNode_0h6d4"]
|
|
resource_name = "."
|
|
saved_value = NodePath(".")
|
|
|
|
[sub_resource type="BTCallMethod" id="BTCallMethod_hlg51"]
|
|
node = SubResource("BBNode_0h6d4")
|
|
method = &"GoTo"
|
|
args = Array[BBVariant]([SubResource("BBVariant_r6svu")])
|
|
|
|
[sub_resource type="BBVariant" id="BBVariant_0kduy"]
|
|
resource_name = "2"
|
|
saved_value = 2
|
|
type = 2
|
|
|
|
[sub_resource type="BBNode" id="BBNode_3rnl4"]
|
|
resource_name = "."
|
|
saved_value = NodePath(".")
|
|
|
|
[sub_resource type="BTCallMethod" id="BTCallMethod_s6v6a"]
|
|
node = SubResource("BBNode_3rnl4")
|
|
method = &"GoTo"
|
|
args = Array[BBVariant]([SubResource("BBVariant_0kduy")])
|
|
|
|
[sub_resource type="BBVariant" id="BBVariant_ofgnx"]
|
|
resource_name = "3"
|
|
saved_value = 3
|
|
type = 2
|
|
|
|
[sub_resource type="BBNode" id="BBNode_sc5bo"]
|
|
resource_name = "."
|
|
saved_value = NodePath(".")
|
|
|
|
[sub_resource type="BTCallMethod" id="BTCallMethod_861fo"]
|
|
node = SubResource("BBNode_sc5bo")
|
|
method = &"GoTo"
|
|
args = Array[BBVariant]([SubResource("BBVariant_ofgnx")])
|
|
|
|
[sub_resource type="BTProbabilitySelector" id="BTProbabilitySelector_syngh"]
|
|
children = [SubResource("BTCallMethod_6osdv"), SubResource("BTCallMethod_hlg51"), SubResource("BTCallMethod_s6v6a"), SubResource("BTCallMethod_861fo")]
|
|
|
|
[sub_resource type="BTCooldown" id="BTCooldown_l6f38"]
|
|
children = [SubResource("BTProbabilitySelector_syngh")]
|
|
duration = 20.0
|
|
trigger_on_failure = true
|
|
cooldown_state_var = &"Stayed"
|
|
|
|
[sub_resource type="BTSequence" id="BTSequence_4yux8"]
|
|
children = [SubResource("BTCooldown_l6f38")]
|
|
|
|
[sub_resource type="BehaviorTree" id="BehaviorTree_rj16b"]
|
|
blackboard_plan = SubResource("BlackboardPlan_pdckj")
|
|
root_task = SubResource("BTSequence_4yux8")
|
|
|
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_gs1pu"]
|
|
var/Stayed/name = &"Stayed"
|
|
var/Stayed/type = 3
|
|
var/Stayed/value = -100.0
|
|
var/Stayed/hint = 0
|
|
var/Stayed/hint_string = ""
|
|
|
|
[node name="Student" type="CharacterBody2D"]
|
|
script = ExtResource("1_oesea")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
scale = Vector2(5, 5)
|
|
texture = ExtResource("1_aultg")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0.5, 3)
|
|
shape = SubResource("RectangleShape2D_opr6h")
|
|
|
|
[node name="BTPlayer" type="BTPlayer" parent="."]
|
|
behavior_tree = SubResource("BehaviorTree_rj16b")
|
|
blackboard_plan = SubResource("BlackboardPlan_gs1pu")
|