generated from SGDA/GodotExampleProject
250 lines
7.4 KiB
Plaintext
250 lines
7.4 KiB
Plaintext
[gd_scene load_steps=29 format=3 uid="uid://4ye80a3tugk6"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d1booebooduen" path="res://scenes/player/assets/dino/sheets/DinoSprites - tard.png" id="1_8afob"]
|
|
[ext_resource type="Script" uid="uid://dco5ddglmk1je" path="res://scenes/player/player.gd" id="1_dovo2"]
|
|
[ext_resource type="Resource" uid="uid://brqtomhme6lci" path="res://scenes/player/move.tres" id="2_gmlin"]
|
|
[ext_resource type="Resource" uid="uid://hduu8jtu7fio" path="res://scenes/player/interact.tres" id="3_lvxji"]
|
|
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="5_qek5x"]
|
|
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="6_5gtgg"]
|
|
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="7_h17s1"]
|
|
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="8_je7p5"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_dovo2"]
|
|
radius = 6.0
|
|
height = 14.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_qek5x"]
|
|
radius = 16.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gmlin"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(0, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lvxji"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(24, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p47bc"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(48, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_75vfm"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(72, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0owmy"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(408, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qek5x"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(96, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5gtgg"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(120, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h17s1"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(144, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_je7p5"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(168, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fm80t"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(192, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gx1jg"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(216, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ugbui"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(432, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fcs02"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(456, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_myrg7"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(480, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kvlxm"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(504, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uf5tr"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(528, 0, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lgqa7"]
|
|
atlas = ExtResource("1_8afob")
|
|
region = Rect2(552, 0, 24, 24)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_8ydkj"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gmlin")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lvxji")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p47bc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_75vfm")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 8.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0owmy")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle_sneak",
|
|
"speed": 1.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qek5x")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5gtgg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_h17s1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_je7p5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fm80t")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gx1jg")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ugbui")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fcs02")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_myrg7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kvlxm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_uf5tr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lgqa7")
|
|
}],
|
|
"loop": true,
|
|
"name": &"sneak",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 3
|
|
collision_mask = 5
|
|
motion_mode = 1
|
|
script = ExtResource("1_dovo2")
|
|
move = ExtResource("2_gmlin")
|
|
interact = ExtResource("3_lvxji")
|
|
|
|
[node name="AudioListener2D" type="AudioListener2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 2)
|
|
shape = SubResource("CapsuleShape2D_dovo2")
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
shape = SubResource("CircleShape2D_qek5x")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_8ydkj")
|
|
animation = &"idle"
|
|
frame_progress = 0.146964
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position_smoothing_enabled = true
|
|
position_smoothing_speed = 12.0
|
|
|
|
[node name="StateChart" type="Node" parent="."]
|
|
script = ExtResource("5_qek5x")
|
|
metadata/_custom_type_script = "uid://couw105c3bde4"
|
|
|
|
[node name="CompoundState" type="Node" parent="StateChart"]
|
|
script = ExtResource("6_5gtgg")
|
|
initial_state = NodePath("idle")
|
|
metadata/_custom_type_script = "uid://jk2jm1g6q853"
|
|
|
|
[node name="idle" type="Node" parent="StateChart/CompoundState"]
|
|
script = ExtResource("7_h17s1")
|
|
|
|
[node name="StartRun" type="Node" parent="StateChart/CompoundState/idle"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../run")
|
|
event = &"run"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[node name="idle_sneak" type="Node" parent="StateChart/CompoundState"]
|
|
script = ExtResource("7_h17s1")
|
|
|
|
[node name="StartRun" type="Node" parent="StateChart/CompoundState/idle_sneak"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../sneak")
|
|
event = &"run"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[node name="run" type="Node" parent="StateChart/CompoundState"]
|
|
script = ExtResource("7_h17s1")
|
|
|
|
[node name="StopRun" type="Node" parent="StateChart/CompoundState/run"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../idle")
|
|
event = &"idle"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[node name="ToSneak" type="Node" parent="StateChart/CompoundState/run"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../sneak")
|
|
event = &"sneak"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[node name="sneak" type="Node" parent="StateChart/CompoundState"]
|
|
script = ExtResource("7_h17s1")
|
|
|
|
[node name="ToNormal" type="Node" parent="StateChart/CompoundState/sneak"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../run")
|
|
event = &"run"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[node name="StopRun" type="Node" parent="StateChart/CompoundState/sneak"]
|
|
script = ExtResource("8_je7p5")
|
|
to = NodePath("../../idle_sneak")
|
|
event = &"idle"
|
|
delay_in_seconds = "0.0"
|
|
|
|
[connection signal="area_entered" from="Area2D" to="." method="_on_interactible_found"]
|
|
[connection signal="area_exited" from="Area2D" to="." method="_on_area_2d_area_exited"]
|