231 lines
8.7 KiB
Text
231 lines
8.7 KiB
Text
[gd_scene load_steps=30 format=3 uid="uid://eegv1qihfv2q"]
|
|
|
|
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_833fu"]
|
|
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_833fu"]
|
|
[ext_resource type="Script" uid="uid://djpc0kvagpadv" path="res://scripts/entities/plants/ThreepeaterShooter.cs" id="2_ieami"]
|
|
[ext_resource type="Texture2D" uid="uid://dyfa4462hu3w1" path="res://assets/sprites/atlases/plants/threepeater.png" id="2_j7h7q"]
|
|
[ext_resource type="Script" uid="uid://hccb0aee0x0o" path="res://scripts/entities/plants/PlantEyesightLimiter.cs" id="3_dqn6w"]
|
|
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="4_ht2a0"]
|
|
[ext_resource type="PackedScene" uid="uid://b2hrv0aqbui7u" path="res://scenes/projectiles/pea.tscn" id="6_kscbk"]
|
|
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="7_anbbx"]
|
|
[ext_resource type="Script" uid="uid://bdk5iqtw4xbkl" path="res://scripts/entities/plants/behaviours/PeashooterBehaviour.cs" id="8_pp80j"]
|
|
[ext_resource type="Script" uid="uid://dn53jvpjyg63l" path="res://scripts/entities/plants/Eyesight.cs" id="9_salpp"]
|
|
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="11_13f0q"]
|
|
[ext_resource type="AudioStream" uid="uid://dsv81mvrdg3w3" path="res://assets/audio/sfx/throw_generic.tres" id="12_4a4xw"]
|
|
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="13_otw6n"]
|
|
|
|
[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_pqbws"]
|
|
resource_name = "idle"
|
|
length = 0.500008
|
|
loop_mode = 2
|
|
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),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [13, 14, 15, 16, 17, 18]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7kfrv"]
|
|
resource_name = "shoot"
|
|
length = 1.58334
|
|
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, 0.833333, 0.916667, 1, 1.08333, 1.16667, 1.25, 1.33333, 1.41667, 1.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
|
|
}
|
|
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.75),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"Shoot"
|
|
}]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("ChannelPlayer")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0.75),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"Play"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_o2obw"]
|
|
_data = {
|
|
&"idle": SubResource("Animation_pqbws"),
|
|
&"shoot": SubResource("Animation_7kfrv")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_mbbd7"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_j7h7q"]
|
|
animation = &"threepeater/idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_pqbws"]
|
|
animation = &"threepeater/shoot"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7kfrv"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_o2obw"]
|
|
advance_mode = 2
|
|
advance_condition = &"ready"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_wiys2"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_wiys2"]
|
|
states/threepeater_idle/node = SubResource("AnimationNodeAnimation_j7h7q")
|
|
states/threepeater_idle/position = Vector2(404, 100)
|
|
states/threepeater_shoot/node = SubResource("AnimationNodeAnimation_pqbws")
|
|
states/threepeater_shoot/position = Vector2(633, 91)
|
|
transitions = ["Start", "threepeater_idle", SubResource("AnimationNodeStateMachineTransition_7kfrv"), "threepeater_idle", "threepeater_shoot", SubResource("AnimationNodeStateMachineTransition_o2obw"), "threepeater_shoot", "threepeater_idle", SubResource("AnimationNodeStateMachineTransition_wiys2")]
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_j7h7q"]
|
|
graph_offset = Vector2(-518.8, 27.8)
|
|
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_mbbd7")
|
|
nodes/TimeScale/position = Vector2(0, 120)
|
|
nodes/Tree/node = SubResource("AnimationNodeStateMachine_wiys2")
|
|
nodes/Tree/position = Vector2(-320, 100)
|
|
node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
|
|
|
[sub_resource type="SegmentShape2D" id="SegmentShape2D_j7h7q"]
|
|
resource_local_to_scene = true
|
|
|
|
[sub_resource type="SegmentShape2D" id="SegmentShape2D_yb26d"]
|
|
resource_local_to_scene = true
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r7xnh"]
|
|
size = Vector2(20, 44)
|
|
|
|
[node name="Threepeater" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
|
script = ExtResource("1_833fu")
|
|
MaxHP = 30.0
|
|
_player = NodePath("AnimationPlayer")
|
|
_tree = NodePath("AnimationTree")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
material = ExtResource("2_833fu")
|
|
position = Vector2(6, -13)
|
|
texture = ExtResource("2_j7h7q")
|
|
hframes = 13
|
|
vframes = 2
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_ipp6b"),
|
|
&"threepeater": SubResource("AnimationLibrary_o2obw")
|
|
}
|
|
autoplay = "peashooter/idle"
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
|
|
tree_root = SubResource("AnimationNodeBlendTree_j7h7q")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
parameters/TimeScale/scale = 1.0
|
|
parameters/Tree/conditions/ready = false
|
|
script = ExtResource("4_ht2a0")
|
|
entity = NodePath("..")
|
|
|
|
[node name="Shooter" type="Marker2D" parent="." node_paths=PackedStringArray("_timer")]
|
|
position = Vector2(20, -9)
|
|
script = ExtResource("2_ieami")
|
|
_projectile = ExtResource("6_kscbk")
|
|
_timer = NodePath("FireTimer")
|
|
|
|
[node name="FireTimer" type="Timer" parent="Shooter" node_paths=PackedStringArray("entity")]
|
|
wait_time = 1.5
|
|
one_shot = true
|
|
script = ExtResource("7_anbbx")
|
|
entity = NodePath("../..")
|
|
|
|
[node name="Behaviour" type="Node" parent="." node_paths=PackedStringArray("_shootTimer", "_sight")]
|
|
script = ExtResource("8_pp80j")
|
|
_shootTimer = NodePath("../Shooter/FireTimer")
|
|
_sight = NodePath("../Eysight")
|
|
|
|
[node name="Eysight" type="Area2D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 8
|
|
script = ExtResource("9_salpp")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Eysight"]
|
|
shape = SubResource("SegmentShape2D_j7h7q")
|
|
script = ExtResource("3_dqn6w")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Eysight"]
|
|
position = Vector2(0, 60)
|
|
shape = SubResource("SegmentShape2D_yb26d")
|
|
script = ExtResource("3_dqn6w")
|
|
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Eysight"]
|
|
position = Vector2(0, -60)
|
|
shape = SubResource("SegmentShape2D_yb26d")
|
|
script = ExtResource("3_dqn6w")
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2(0, 5)
|
|
shape = SubResource("RectangleShape2D_r7xnh")
|
|
|
|
[node name="ChannelPlayer" type="Node" parent="."]
|
|
script = ExtResource("11_13f0q")
|
|
audioStream = ExtResource("12_4a4xw")
|
|
channel = "pea_shoot"
|
|
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
|
|
|
[node name="FlashController" type="Node" parent="."]
|
|
script = ExtResource("13_otw6n")
|
|
shaderMaterial = ExtResource("2_833fu")
|
|
|
|
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
|