particles

main
Just Dzhi 2023-10-01 19:24:37 +04:00
parent 340e50d770
commit 898eaf659a
3 changed files with 12 additions and 3 deletions

View File

@ -15,5 +15,5 @@ void fragment(){
[resource] [resource]
shader = SubResource( 3 ) shader = SubResource( 3 )
shader_param/active = true shader_param/active = false
shader_param/color = Color( 1, 1, 1, 0 ) shader_param/color = Color( 1, 1, 1, 1 )

View File

@ -15,7 +15,7 @@ script = ExtResource( 2 )
use_parent_material = true use_parent_material = true
frames = ExtResource( 1 ) frames = ExtResource( 1 )
animation = "idle" animation = "idle"
frame = 1 frame = 2
playing = true playing = true
centered = false centered = false

View File

@ -92,6 +92,15 @@ position = Vector2( 509, 100 )
[node name="Rat" parent="View/Enemies" instance=ExtResource( 17 )] [node name="Rat" parent="View/Enemies" instance=ExtResource( 17 )]
position = Vector2( 93, 72 ) position = Vector2( 93, 72 )
[node name="CPUParticles2D" type="CPUParticles2D" parent="View"]
position = Vector2( 160, 90 )
amount = 6
lifetime = 3.0
emission_shape = 2
emission_rect_extents = Vector2( 160, 60 )
gravity = Vector2( 0, -9 )
color = Color( 0.133333, 0.133333, 0.137255, 1 )
[node name="UIWrapper" type="CanvasLayer" parent="."] [node name="UIWrapper" type="CanvasLayer" parent="."]
layer = 3 layer = 3