death now cancels effects
This commit is contained in:
parent
9be6a3a169
commit
5c33aacf7f
5 changed files with 66 additions and 34 deletions
|
|
@ -1,13 +1,22 @@
|
|||
[gd_scene load_steps=23 format=3 uid="uid://cjoyh54cpjla7"]
|
||||
[gd_scene load_steps=25 format=3 uid="uid://cjoyh54cpjla7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_65f4u"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt76iudw2qgnv" path="res://assets/sprites/atlases/plants/cumbucer.png" id="2_ig0op"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_jbggv"]
|
||||
[ext_resource type="Script" uid="uid://dn53jvpjyg63l" path="res://scripts/entities/plants/Eyesight.cs" id="3_d45iq"]
|
||||
[ext_resource type="Script" uid="uid://ceprqkraw3v6m" path="res://scripts/entities/plants/Shooter.cs" id="4_sckvu"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1ig40gtdcb60" path="res://scenes/projectiles/cucumber_projectile.tscn" id="5_sckvu"]
|
||||
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="6_xwpd6"]
|
||||
[ext_resource type="Script" uid="uid://bdk5iqtw4xbkl" path="res://scripts/entities/plants/behaviours/PeashooterBehaviour.cs" id="7_q31qc"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_jbggv"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_jbggv")
|
||||
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_n1xkd"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
|
|
@ -128,6 +137,7 @@ internal_id = "cucumber"
|
|||
MaxHP = 30.0
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_jbggv")
|
||||
texture = ExtResource("2_ig0op")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
|
|
@ -170,3 +180,6 @@ entity = NodePath("../..")
|
|||
script = ExtResource("7_q31qc")
|
||||
_shootTimer = NodePath("../Shooter/Timer")
|
||||
_sight = NodePath("../Eysight")
|
||||
|
||||
[node name="FlashController" parent="." index="7"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_jbggv")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue