172 lines
6.2 KiB
Plaintext
172 lines
6.2 KiB
Plaintext
[gd_scene load_steps=34 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"]
|
|
[ext_resource type="Texture2D" uid="uid://bw2007qd8eedh" path="res://resources/characters/bodies/Body_48x48_01.png" id="3_jhea4"]
|
|
[ext_resource type="Texture2D" uid="uid://qy0uuxnhw68l" path="res://resources/characters/bodies/Body_48x48_02.png" id="4_m415b"]
|
|
[ext_resource type="Texture2D" uid="uid://dkex2kgesyre" path="res://resources/characters/bodies/Body_48x48_03.png" id="5_43uqe"]
|
|
[ext_resource type="Texture2D" uid="uid://d0cugrkpm2nog" path="res://resources/characters/bodies/Body_48x48_04.png" id="6_ya3j6"]
|
|
[ext_resource type="Texture2D" uid="uid://bbuisicmrdnxn" path="res://resources/characters/bodies/Body_48x48_05.png" id="7_xp243"]
|
|
[ext_resource type="Texture2D" uid="uid://dniedwqbvqt5o" path="res://resources/characters/bodies/Body_48x48_06.png" id="8_j6ong"]
|
|
[ext_resource type="Texture2D" uid="uid://billolbrrj1cq" path="res://resources/characters/bodies/Body_48x48_07.png" id="9_n8kat"]
|
|
[ext_resource type="Texture2D" uid="uid://d0kbiwe4o1d7e" path="res://resources/characters/bodies/Body_48x48_08.png" id="10_lwiba"]
|
|
[ext_resource type="Texture2D" uid="uid://cajoy1yhc8h6o" path="res://resources/characters/bodies/Body_48x48_09.png" id="11_hohsd"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_opr6h"]
|
|
size = Vector2(48, 96)
|
|
|
|
[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")]
|
|
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 = ""
|
|
|
|
[sub_resource type="Animation" id="Animation_bptvv"]
|
|
resource_name = "idle_front"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("parts/body:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(18, 1), Vector2i(19, 1), Vector2i(20, 1), Vector2i(21, 1), Vector2i(22, 1), Vector2i(23, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_f0f87"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("parts/body:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(18, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fw47y"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_f0f87"),
|
|
"idle_front": SubResource("Animation_bptvv")
|
|
}
|
|
|
|
[node name="Student" type="CharacterBody2D"]
|
|
script = ExtResource("1_oesea")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
visible = false
|
|
scale = Vector2(5, 5)
|
|
texture = ExtResource("1_aultg")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_opr6h")
|
|
|
|
[node name="BTPlayer" type="BTPlayer" parent="."]
|
|
behavior_tree = SubResource("BehaviorTree_rj16b")
|
|
blackboard_plan = SubResource("BlackboardPlan_gs1pu")
|
|
|
|
[node name="parts" type="Node2D" parent="."]
|
|
|
|
[node name="body" type="Sprite2D" parent="parts"]
|
|
texture = ExtResource("3_jhea4")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 44
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_fw47y")
|
|
}
|
|
|
|
[node name="ResourcePreloader" type="ResourcePreloader" parent="."]
|
|
resources = [PackedStringArray("Body_48x48_01", "Body_48x48_02", "Body_48x48_03", "Body_48x48_04", "Body_48x48_05", "Body_48x48_06", "Body_48x48_07", "Body_48x48_08", "Body_48x48_09"), [ExtResource("3_jhea4"), ExtResource("4_m415b"), ExtResource("5_43uqe"), ExtResource("6_ya3j6"), ExtResource("7_xp243"), ExtResource("8_j6ong"), ExtResource("9_n8kat"), ExtResource("10_lwiba"), ExtResource("11_hohsd")]]
|