Better status effects
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bcmx07k12gcsc"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bcmx07k12gcsc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_xusxl"]
|
||||
[ext_resource type="Script" path="res://scripts/components/bullet.gd" id="2_ilnf5"]
|
||||
[ext_resource type="Script" path="res://scripts/components/damage.gd" id="3_htddx"]
|
||||
[ext_resource type="Script" path="res://scripts/components/damage_component.gd" id="3_3yf4g"]
|
||||
[ext_resource type="Resource" uid="uid://02l4nbnf2aft" path="res://resources/status_effect/ice.tres" id="4_da7hn"]
|
||||
[ext_resource type="Script" path="res://scripts/components/effect_inflictor_component.gd" id="5_x7vqb"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ar0xf"]
|
||||
size = Vector2(16, 10)
|
||||
@@ -36,6 +38,10 @@ scale = Vector2(0.8, 0.5)
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
|
||||
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("area2d")]
|
||||
script = ExtResource("3_htddx")
|
||||
script = ExtResource("3_3yf4g")
|
||||
area2d = NodePath("..")
|
||||
is_ice_brick = true
|
||||
status_effect_data = ExtResource("4_da7hn")
|
||||
|
||||
[node name="EffectInflictorComponent" type="Node" parent="." node_paths=PackedStringArray("damage")]
|
||||
script = ExtResource("5_x7vqb")
|
||||
damage = NodePath("../DamageComponent")
|
||||
|
Reference in New Issue
Block a user