Particles system

This commit is contained in:
Rendo 2025-06-28 02:44:42 +05:00
commit 0e5dee50f7
46 changed files with 643 additions and 200 deletions

View file

@ -0,0 +1,73 @@
[gd_scene load_steps=9 format=3 uid="uid://b4lx8adw6rbqs"]
[ext_resource type="Texture2D" uid="uid://d3673b2idj18b" path="res://assets/sprites/particles/dirt1.tres" id="1_nc6dt"]
[ext_resource type="Script" uid="uid://dxcd70o6aa7pr" path="res://scripts/components/particles/StandardParticles.cs" id="1_o2lv2"]
[ext_resource type="Material" uid="uid://dmpscw60bfrj" path="res://assets/sprites/particles/dirt_material.tres" id="2_o2lv2"]
[ext_resource type="Texture2D" uid="uid://bs8cll4gtgwr1" path="res://assets/sprites/particles/dirt2.tres" id="3_0gemy"]
[ext_resource type="Texture2D" uid="uid://0tja7r7yp1ht" path="res://assets/sprites/particles/dirt3.tres" id="4_ihbjc"]
[ext_resource type="Texture2D" uid="uid://conyd86prykef" path="res://assets/sprites/particles/dirt4.tres" id="5_hu2fb"]
[ext_resource type="Texture2D" uid="uid://u6vxm6gejoss" path="res://assets/sprites/particles/dirt5.tres" id="6_bwqux"]
[ext_resource type="Texture2D" uid="uid://biooadlxqqeos" path="res://assets/sprites/particles/dirt6.tres" id="7_ee6l0"]
[node name="DirtExplosion" type="Node2D"]
script = ExtResource("1_o2lv2")
[node name="First" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("1_nc6dt")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")
[node name="Second" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("3_0gemy")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")
[node name="Third" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("4_ihbjc")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")
[node name="Fourth" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("5_hu2fb")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")
[node name="Fifth" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("6_bwqux")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")
[node name="Sixth" type="GPUParticles2D" parent="."]
emitting = false
amount = 3
texture = ExtResource("7_ee6l0")
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("2_o2lv2")

View file

@ -0,0 +1,36 @@
[gd_scene load_steps=6 format=3 uid="uid://1d33w4ubtury"]
[ext_resource type="Script" uid="uid://dxcd70o6aa7pr" path="res://scripts/components/particles/StandardParticles.cs" id="1_rhijc"]
[ext_resource type="Texture2D" uid="uid://d1ovwgd03fxx5" path="res://assets/sprites/particles/pea_fragment1.tres" id="1_wg12m"]
[ext_resource type="Material" uid="uid://0sf0uy1dkxb6" path="res://assets/sprites/particles/pea_material.tres" id="2_rhijc"]
[ext_resource type="Texture2D" uid="uid://bmig582h4s38v" path="res://assets/sprites/particles/pea_fragment2.tres" id="3_yroe6"]
[ext_resource type="Texture2D" uid="uid://cg3nx7qj8kbkw" path="res://assets/sprites/particles/pea_fragment3.tres" id="4_bbhkw"]
[node name="PeaParticles" type="Node2D"]
script = ExtResource("1_rhijc")
[node name="First" type="GPUParticles2D" parent="."]
emitting = false
amount = 1
texture = ExtResource("1_wg12m")
one_shot = true
explosiveness = 1.0
process_material = ExtResource("2_rhijc")
[node name="Second" type="GPUParticles2D" parent="."]
emitting = false
amount = 1
texture = ExtResource("3_yroe6")
one_shot = true
explosiveness = 1.0
randomness = 0.15
process_material = ExtResource("2_rhijc")
[node name="Third" type="GPUParticles2D" parent="."]
emitting = false
amount = 1
texture = ExtResource("4_bbhkw")
one_shot = true
explosiveness = 1.0
randomness = 0.15
process_material = ExtResource("2_rhijc")

View file

@ -0,0 +1,54 @@
[gd_scene load_steps=7 format=3 uid="uid://ckanq33rao1ur"]
[ext_resource type="PackedScene" uid="uid://b4lx8adw6rbqs" path="res://scenes/particles/dirt_explosion.tscn" id="1_c4q5e"]
[ext_resource type="Texture2D" uid="uid://cad45iyh16x5g" path="res://assets/sprites/particles/nachinka1.tres" id="2_lgu5b"]
[ext_resource type="Material" uid="uid://dvjxab8lnj6ap" path="res://assets/sprites/particles/potato_material.tres" id="3_lgu5b"]
[ext_resource type="Texture2D" uid="uid://b3yfl2had6t3o" path="res://assets/sprites/particles/nachinka2.tres" id="4_xwh7c"]
[ext_resource type="Texture2D" uid="uid://e5v4vpux4h8k" path="res://assets/sprites/particles/nachinka3.tres" id="5_ryjsf"]
[ext_resource type="Texture2D" uid="uid://dny6mfpspd3o8" path="res://assets/sprites/particles/nachinka4.tres" id="6_ursbv"]
[node name="PotatoExplosion" instance=ExtResource("1_c4q5e")]
[node name="Nachinka" type="GPUParticles2D" parent="." index="6"]
emitting = false
amount = 2
texture = ExtResource("2_lgu5b")
lifetime = 2.0
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("3_lgu5b")
[node name="Nachinka2" type="GPUParticles2D" parent="." index="7"]
emitting = false
amount = 2
texture = ExtResource("4_xwh7c")
lifetime = 2.0
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("3_lgu5b")
[node name="Nachinka3" type="GPUParticles2D" parent="." index="8"]
emitting = false
amount = 2
texture = ExtResource("5_ryjsf")
lifetime = 2.0
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("3_lgu5b")
[node name="Nachinka4" type="GPUParticles2D" parent="." index="9"]
emitting = false
amount = 2
texture = ExtResource("6_ursbv")
lifetime = 2.0
one_shot = true
explosiveness = 1.0
randomness = 0.11
local_coords = true
process_material = ExtResource("3_lgu5b")

View file

@ -0,0 +1,17 @@
[gd_scene load_steps=5 format=3 uid="uid://cijchi3f01q2t"]
[ext_resource type="PackedScene" uid="uid://1d33w4ubtury" path="res://scenes/particles/pea_particles.tscn" id="1_5fx7g"]
[ext_resource type="Texture2D" uid="uid://el3weu727cmo" path="res://assets/sprites/particles/snowpea_fragment1.tres" id="2_fb47t"]
[ext_resource type="Texture2D" uid="uid://rv2ibl8ls1kh" path="res://assets/sprites/particles/snowpea_fragment2.tres" id="3_5frrb"]
[ext_resource type="Texture2D" uid="uid://bgg1n8802ebm6" path="res://assets/sprites/particles/snowpea_fragment3.tres" id="4_hwfh3"]
[node name="SnowPeaParticles" instance=ExtResource("1_5fx7g")]
[node name="First" parent="." index="0"]
texture = ExtResource("2_fb47t")
[node name="Second" parent="." index="1"]
texture = ExtResource("3_5frrb")
[node name="Third" parent="." index="2"]
texture = ExtResource("4_hwfh3")