246 lines
7.8 KiB
Plaintext
246 lines
7.8 KiB
Plaintext
[gd_scene load_steps=30 format=3 uid="uid://c413oatj0eqhu"]
|
|
|
|
[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://c5or8ivaegryg" path="res://resources/characters/accessories/Accessory_06_Policeman_Hat_48x48_01.png" id="30_npp82"]
|
|
[ext_resource type="Texture2D" uid="uid://ylt6r0ottjkn" path="res://resources/characters/eyes/Eyes_48x48_01.png" id="96_q8xrp"]
|
|
[ext_resource type="Texture2D" uid="uid://dnqrj6tcfn7rb" path="res://resources/characters/hairstyles/Hairstyle_01_48x48_01.png" id="103_yndn4"]
|
|
[ext_resource type="Texture2D" uid="uid://b56o8633pqwhy" path="res://resources/characters/outfits/Outfit_01_48x48_01.png" id="303_jwwbg"]
|
|
[ext_resource type="Texture2D" uid="uid://bdqtr38welh7c" path="res://resources/characters/smartphones/Smartphone_48x48_1.png" id="435_7vwql"]
|
|
|
|
[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_f0f87"]
|
|
length = 0.001
|
|
|
|
[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)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("parts/accessory:frame_coords")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/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)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("parts/eye:frame_coords")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/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)]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("parts/hairstyle:frame_coords")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/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)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("parts/outfit:frame_coords")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/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)]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("parts/smartphone:frame_coords")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/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="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="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -48)
|
|
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="."]
|
|
position = Vector2(0, -24)
|
|
|
|
[node name="body" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("3_jhea4")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="hairstyle" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("103_yndn4")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="outfit" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("303_jwwbg")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="eye" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("96_q8xrp")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="accessory" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("30_npp82")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="smartphone" type="Sprite2D" parent="parts"]
|
|
position = Vector2(0, -24)
|
|
texture = ExtResource("435_7vwql")
|
|
hframes = 26
|
|
vframes = 8
|
|
frame = 45
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_fw47y")
|
|
}
|