new effect system
This commit is contained in:
parent
f3a6f7a05a
commit
22b02c4590
11 changed files with 146 additions and 89 deletions
|
|
@ -1,9 +1,18 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://b2hrv0aqbui7u"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b2hrv0aqbui7u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dxlwvwy3hj56x" path="res://scripts/projectiles/LinearProjectile.cs" id="1_3kc4s"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq0mul65hevtt" path="res://assets/sprites/plants/pea.tres" id="2_26q5x"]
|
||||
[ext_resource type="Script" uid="uid://bb6lv1djnqjaw" path="res://scripts/systems/effects/RandomRedirectEffect.cs" id="2_fwj1o"]
|
||||
[ext_resource type="PackedScene" uid="uid://1d33w4ubtury" path="res://scenes/particles/pea_particles.tscn" id="2_osqrk"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_22ej5"]
|
||||
script = ExtResource("2_fwj1o")
|
||||
tilesWalked = 0.2
|
||||
travelTime = 0.2
|
||||
Duration = 0.3
|
||||
Slot = "testra"
|
||||
metadata/_custom_type_script = "uid://bb6lv1djnqjaw"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ix1sk"]
|
||||
radius = 6.0
|
||||
|
||||
|
|
@ -13,6 +22,7 @@ collision_mask = 8
|
|||
script = ExtResource("1_3kc4s")
|
||||
_speed = 3.0
|
||||
_damage = 10
|
||||
_impactEffect = SubResource("Resource_22ej5")
|
||||
particles = ExtResource("2_osqrk")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue