127 lines
3.8 KiB
Text
127 lines
3.8 KiB
Text
[gd_scene load_steps=12 format=3 uid="uid://eegv1qihfv2q"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dy41q1kxray5t" path="res://scenes/entities/plants/peashooter.tscn" id="1_muntu"]
|
|
[ext_resource type="Script" uid="uid://djpc0kvagpadv" path="res://scripts/components/plants/ThreepeaterShooter.cs" id="2_ieami"]
|
|
[ext_resource type="AudioStream" uid="uid://dp6k7xiptn68n" path="res://assets/audio/sfx/pop.mp3" id="2_j7h7q"]
|
|
[ext_resource type="Script" uid="uid://hccb0aee0x0o" path="res://scripts/components/plants/PlantEyesightLimiter.cs" id="3_dqn6w"]
|
|
|
|
[sub_resource type="Animation" id="Animation_a2y0j"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D: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="AnimationLibrary" id="AnimationLibrary_ipp6b"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_a2y0j")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_oxaxi"]
|
|
resource_name = "idle"
|
|
length = 0.833342
|
|
loop_mode = 1
|
|
step = 0.0833333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D: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, 0.5, 0.583333, 0.666667, 0.75),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7sohe"]
|
|
resource_name = "shoot"
|
|
length = 0.666675
|
|
step = 0.0833333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D: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, 0.5, 0.583333),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [10, 11, 12, 13, 14, 15, 16, 17]
|
|
}
|
|
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("2_j7h7q")
|
|
}],
|
|
"times": PackedFloat32Array(0.25)
|
|
}
|
|
tracks/2/use_blend = true
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pqbws"]
|
|
resource_local_to_scene = true
|
|
_data = {
|
|
&"idle": SubResource("Animation_oxaxi"),
|
|
&"shoot": SubResource("Animation_7sohe")
|
|
}
|
|
|
|
[sub_resource type="SegmentShape2D" id="SegmentShape2D_j7h7q"]
|
|
resource_local_to_scene = true
|
|
|
|
[sub_resource type="SegmentShape2D" id="SegmentShape2D_yb26d"]
|
|
resource_local_to_scene = true
|
|
|
|
[node name="Threepeater" instance=ExtResource("1_muntu")]
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_ipp6b"),
|
|
&"peashooter": SubResource("AnimationLibrary_pqbws")
|
|
}
|
|
|
|
[node name="Shooter" parent="." index="3"]
|
|
script = ExtResource("2_ieami")
|
|
|
|
[node name="CollisionShape2D" parent="Eysight" index="0"]
|
|
shape = SubResource("SegmentShape2D_j7h7q")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Eysight" index="1"]
|
|
position = Vector2(0, 60)
|
|
shape = SubResource("SegmentShape2D_yb26d")
|
|
script = ExtResource("3_dqn6w")
|
|
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Eysight" index="2"]
|
|
position = Vector2(0, -60)
|
|
shape = SubResource("SegmentShape2D_yb26d")
|
|
script = ExtResource("3_dqn6w")
|