description requests
This commit is contained in:
parent
de2e8b1e50
commit
6fbae10750
35 changed files with 359 additions and 154 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=24 format=3 uid="uid://dy41q1kxray5t"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://dy41q1kxray5t"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_pyk3o"]
|
||||
[ext_resource type="Texture2D" uid="uid://cksryh4w5dbbx" path="res://assets/sprites/atlases/plants/peashooter.png" id="2_14qlx"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_fp65y"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://bv1dl1g4dmbho" path="res://assets/animations/plants/peashooter.res" id="3_8lrhp"]
|
||||
[ext_resource type="Script" uid="uid://ceprqkraw3v6m" path="res://scripts/entities/plants/Shooter.cs" id="3_a4ew1"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2hrv0aqbui7u" path="res://scenes/projectiles/pea.tscn" id="4_saxds"]
|
||||
|
|
@ -12,6 +13,14 @@
|
|||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="9_mbbd7"]
|
||||
[ext_resource type="AudioStream" uid="uid://dsv81mvrdg3w3" path="res://assets/audio/sfx/throw_generic.tres" id="10_q58jr"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fp65y"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_fp65y")
|
||||
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
|
||||
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_a2y0j"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
|
|
@ -77,6 +86,7 @@ internal_id = "peashooter"
|
|||
MaxHP = 30.0
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_fp65y")
|
||||
texture = ExtResource("2_14qlx")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
|
|
@ -97,9 +107,9 @@ parameters/Tree/conditions/ready = false
|
|||
position = Vector2(12, -4)
|
||||
script = ExtResource("3_a4ew1")
|
||||
_projectile = ExtResource("4_saxds")
|
||||
_timer = NodePath("Timer")
|
||||
_timer = NodePath("FireTimer")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
|
||||
[node name="FireTimer" type="Timer" parent="Shooter" index="0" node_paths=PackedStringArray("entity")]
|
||||
wait_time = 1.5
|
||||
one_shot = true
|
||||
script = ExtResource("6_q58jr")
|
||||
|
|
@ -107,7 +117,7 @@ entity = NodePath("../..")
|
|||
|
||||
[node name="Behaviour" type="Node" parent="." index="4" node_paths=PackedStringArray("_shootTimer", "_sight")]
|
||||
script = ExtResource("5_7qiua")
|
||||
_shootTimer = NodePath("../Shooter/Timer")
|
||||
_shootTimer = NodePath("../Shooter/FireTimer")
|
||||
_sight = NodePath("../Eysight")
|
||||
|
||||
[node name="Eysight" type="Area2D" parent="." index="5"]
|
||||
|
|
@ -128,3 +138,6 @@ script = ExtResource("9_mbbd7")
|
|||
audioStream = ExtResource("10_q58jr")
|
||||
channel = "pea_shoot"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="FlashController" parent="." index="8"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_fp65y")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue