mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 17:33:47 +00:00
Shield particles
This commit is contained in:
parent
4a8ac7a495
commit
fc833ae300
2 changed files with 42 additions and 38 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=38 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
[gd_scene load_steps=39 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_m27vu"]
|
||||
[ext_resource type="Texture2D" uid="uid://la06powu57hu" path="res://Sprites/Cirno_Big.png" id="2_bwf6x"]
|
||||
|
|
@ -27,7 +27,7 @@ region = Rect2(0, 0, 8, 16)
|
|||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_s7co1"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("6_xugve")
|
||||
shader_parameter/blink_color = Color(1, 1, 1, 1)
|
||||
shader_parameter/blink_color = Color(1, 0.0705882, 0.0392157, 1)
|
||||
shader_parameter/blink_intensity = 0.0
|
||||
shader_parameter/teleport_progress = 0.0
|
||||
shader_parameter/scanline_density = 0.0
|
||||
|
|
@ -172,7 +172,16 @@ radius = 17.2627
|
|||
[sub_resource type="CircleShape2D" id="CircleShape2D_e6woi"]
|
||||
radius = 1.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle", "HitboxSprite") groups=["Destroyable", "player"]]
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_hmqi5"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 2
|
||||
emission_sphere_radius = 16.0
|
||||
orbit_velocity_min = -1.0
|
||||
orbit_velocity_max = 1.098
|
||||
gravity = Vector3(0, 0, 0)
|
||||
color = Color(0.0392157, 0.380392, 1, 1)
|
||||
|
||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle", "HitboxSprite", "_shieldParticles") groups=["Destroyable", "player"]]
|
||||
y_sort_enabled = true
|
||||
collision_layer = 2
|
||||
collision_mask = 99
|
||||
|
|
@ -187,6 +196,7 @@ Muzzle = NodePath("Muzzle")
|
|||
BlinkShader = ExtResource("6_xugve")
|
||||
HitboxSprite = NodePath("Smoothing2D/HitboxSprite")
|
||||
_deathParticles = ExtResource("4_1bl4h")
|
||||
_shieldParticles = NodePath("ShieldParticles")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
|
@ -267,6 +277,13 @@ script = ExtResource("14_mfxfv")
|
|||
ResourceName = "Shield"
|
||||
MaxResource = 25.0
|
||||
|
||||
[node name="ShieldParticles" type="GPUParticles2D" parent="."]
|
||||
emitting = false
|
||||
amount = 32
|
||||
process_material = SubResource("ParticleProcessMaterial_hmqi5")
|
||||
lifetime = 0.4
|
||||
one_shot = true
|
||||
|
||||
[connection signal="area_entered" from="InteractionController" to="." method="_on_interaction_controller_area_entered"]
|
||||
[connection signal="area_exited" from="InteractionController" to="." method="_on_interaction_controller_area_exited"]
|
||||
[connection signal="area_entered" from="DamageHitBox" to="." method="_on_damage_hit_box_area_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue