123 lines
4.2 KiB
Text
123 lines
4.2 KiB
Text
[gd_scene load_steps=16 format=3 uid="uid://b7innrovtmf5u"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://be1kgukmiu0hs" path="res://scenes/entities/plants/peashooter.tscn" id="1_lp85e"]
|
|
[ext_resource type="Texture2D" uid="uid://cu0651pvvkmvm" path="res://assets/sprites/atlases/plants/snow_pea.png" id="2_ytrm0"]
|
|
[ext_resource type="AudioStream" uid="uid://dp6k7xiptn68n" path="res://assets/audio/sfx/pop.mp3" id="3_4fpbe"]
|
|
[ext_resource type="AnimationLibrary" uid="uid://cke5wmmrvevbs" path="res://resources/animations/plants/snowpea.res" id="4_jvx5y"]
|
|
[ext_resource type="PackedScene" uid="uid://domeukw4ucmyr" path="res://scenes/projectiles/snowpea_projectile.tscn" id="5_bv86m"]
|
|
|
|
[sub_resource type="Animation" id="Animation_pephc"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ip1gy"]
|
|
resource_name = "shoot_2"
|
|
length = 0.666675
|
|
step = 0.0833333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.0833333, 0.166667, 0.25, 0.333333, 0.416667),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [5, 7, 9, 11, 13, 15]
|
|
}
|
|
tracks/1/type = "method"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Shooter")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.25),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"Shoot"
|
|
}]
|
|
}
|
|
tracks/2/type = "audio"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("AudioStreamPlayer2D")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"clips": [{
|
|
"end_offset": 0.0,
|
|
"start_offset": 0.0,
|
|
"stream": ExtResource("3_4fpbe")
|
|
}],
|
|
"times": PackedFloat32Array(0.25)
|
|
}
|
|
tracks/2/use_blend = true
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_djmlc"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_pephc"),
|
|
"shoot_2": SubResource("Animation_ip1gy")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7tu1y"]
|
|
animation = &"snowpea/idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_nhra5"]
|
|
animation = &"snowpea/shoot"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_iyvb5"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_63spy"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_yr2qp"]
|
|
advance_mode = 2
|
|
advance_condition = &"ready"
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_owox6"]
|
|
states/Start/position = Vector2(192, 100)
|
|
states/snowpea_idle/node = SubResource("AnimationNodeAnimation_7tu1y")
|
|
states/snowpea_idle/position = Vector2(425, 100)
|
|
states/snowpea_shoot/node = SubResource("AnimationNodeAnimation_nhra5")
|
|
states/snowpea_shoot/position = Vector2(644, 96)
|
|
transitions = ["Start", "snowpea_idle", SubResource("AnimationNodeStateMachineTransition_iyvb5"), "snowpea_shoot", "snowpea_idle", SubResource("AnimationNodeStateMachineTransition_63spy"), "snowpea_idle", "snowpea_shoot", SubResource("AnimationNodeStateMachineTransition_yr2qp")]
|
|
|
|
[sub_resource type="SegmentShape2D" id="SegmentShape2D_k2110"]
|
|
resource_local_to_scene = true
|
|
b = Vector2(5.865, 0)
|
|
|
|
[node name="Snowpea" instance=ExtResource("1_lp85e")]
|
|
|
|
[node name="Sprite" parent="." index="0"]
|
|
texture = ExtResource("2_ytrm0")
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_djmlc"),
|
|
"snowpea": ExtResource("4_jvx5y")
|
|
}
|
|
|
|
[node name="AnimationTree" parent="." index="2"]
|
|
tree_root = SubResource("AnimationNodeStateMachine_owox6")
|
|
|
|
[node name="Shooter" parent="." index="4"]
|
|
_projectile = ExtResource("5_bv86m")
|
|
|
|
[node name="CollisionShape2D" parent="Eyesight" index="0"]
|
|
shape = SubResource("SegmentShape2D_k2110")
|