leaf particles

pull/6/head
John Montagu, the 4th Earl of Sandvich 2023-08-15 21:49:15 -07:00
parent 050a37712b
commit 87c6be6c1c
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 61 additions and 23 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=61 format=3 uid="uid://dr3bcvql7burk"] [gd_scene load_steps=65 format=3 uid="uid://dr3bcvql7burk"]
[ext_resource type="PackedScene" uid="uid://clwv2owvk6abe" path="res://Scenes/BaseMap.tscn" id="1_ci4ij"] [ext_resource type="PackedScene" uid="uid://clwv2owvk6abe" path="res://Scenes/BaseMap.tscn" id="1_ci4ij"]
[ext_resource type="TileSet" uid="uid://l61kbx31ug4p" path="res://Scenes/Maps/ArenaTileset.tres" id="2_m6h7j"] [ext_resource type="TileSet" uid="uid://l61kbx31ug4p" path="res://Scenes/Maps/ArenaTileset.tres" id="2_m6h7j"]
@ -26,6 +26,7 @@
[ext_resource type="PackedScene" uid="uid://c5i3cq1kewljv" path="res://Props/ArenaDoor.tscn" id="21_nvrif"] [ext_resource type="PackedScene" uid="uid://c5i3cq1kewljv" path="res://Props/ArenaDoor.tscn" id="21_nvrif"]
[ext_resource type="PackedScene" uid="uid://bs6xuujve2tsf" path="res://Props/ArenaDoorSwitch.tscn" id="22_ay852"] [ext_resource type="PackedScene" uid="uid://bs6xuujve2tsf" path="res://Props/ArenaDoorSwitch.tscn" id="22_ay852"]
[ext_resource type="PackedScene" uid="uid://dhl071rj5wyvx" path="res://Entities/Campfire.tscn" id="23_mykt8"] [ext_resource type="PackedScene" uid="uid://dhl071rj5wyvx" path="res://Entities/Campfire.tscn" id="23_mykt8"]
[ext_resource type="Texture2D" uid="uid://d2vhmsc65ichv" path="res://Assets/Sprites/Particles/leaf-white.png" id="23_qkkt0"]
[ext_resource type="PackedScene" uid="uid://cdj50hb84aujp" path="res://Characters/DocLegionary.tscn" id="27_84gw4"] [ext_resource type="PackedScene" uid="uid://cdj50hb84aujp" path="res://Characters/DocLegionary.tscn" id="27_84gw4"]
[ext_resource type="Shader" path="res://Shaders/Flash.gdshader" id="28_b3suq"] [ext_resource type="Shader" path="res://Shaders/Flash.gdshader" id="28_b3suq"]
[ext_resource type="PackedScene" uid="uid://dhamcei7tfta8" path="res://Characters/DocCenturion.tscn" id="30_qfl2k"] [ext_resource type="PackedScene" uid="uid://dhamcei7tfta8" path="res://Characters/DocCenturion.tscn" id="30_qfl2k"]
@ -162,77 +163,103 @@ size = Vector2(64, 97)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5pcme"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_5pcme"]
size = Vector2(18, 6) size = Vector2(18, 6)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ctg4t"] [sub_resource type="Gradient" id="Gradient_p5otp"]
offsets = PackedFloat32Array(0, 0.2, 0.5, 0.6, 0.7, 0.8, 1)
colors = PackedColorArray(0.105882, 0.0470588, 0.117647, 0, 0.105882, 0.0470588, 0.117647, 1, 0.105882, 0.0470588, 0.117647, 1, 0.0509804, 0.258824, 0.109804, 1, 0.396078, 0.658824, 0.309804, 1, 0.745098, 0.85098, 0.513726, 1, 0.745098, 0.85098, 0.513726, 0)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4a2pn"]
gradient = SubResource("Gradient_p5otp")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_v605q"]
lifetime_randomness = 0.5
emission_shape = 6
emission_ring_axis = Vector3(0, 0, 1)
emission_ring_height = 1.0
emission_ring_radius = 128.0
emission_ring_inner_radius = 64.0
particle_flag_disable_z = true
direction = Vector3(2, 1, 0)
gravity = Vector3(32, 32, 0)
initial_velocity_min = 32.0
initial_velocity_max = 64.0
angular_velocity_max = 30.0
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
color_ramp = SubResource("GradientTexture1D_4a2pn")
turbulence_enabled = true
turbulence_noise_speed = Vector3(1, 0, 0)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_62mjn"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_h8que"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_fm6gf"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_o5ihe"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_5r1uw"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_6hrf6"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_mg6p2"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_wipup"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_pasr8"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4w0mf"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_ssyug"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_76uvw"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_qdufc"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_w515t"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_h8ake"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_1jw68"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_ircpp"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_88cs5"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_bmcii"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
shader_parameter/intensity = 0.0 shader_parameter/intensity = 0.0
shader_parameter/alpha_modulate = 1.0 shader_parameter/alpha_modulate = 1.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_f3see"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_0d3a7"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("28_b3suq") shader = ExtResource("28_b3suq")
shader_parameter/color = Vector4(1, 1, 1, 1) shader_parameter/color = Vector4(1, 1, 1, 1)
@ -654,6 +681,17 @@ flip_h = true
position = Vector2(0, 9) position = Vector2(0, 9)
shape = SubResource("RectangleShape2D_5pcme") shape = SubResource("RectangleShape2D_5pcme")
[node name="GPUParticles2D" type="GPUParticles2D" parent="Props" index="26"]
z_index = 5
position = Vector2(576, 436)
amount = 16
process_material = SubResource("ParticleProcessMaterial_v605q")
texture = ExtResource("23_qkkt0")
lifetime = 4.0
explosiveness = 0.2
randomness = 0.5
fixed_fps = 24
[node name="ArenaEntrance" parent="Entities" index="0" instance=ExtResource("20_tcd0x")] [node name="ArenaEntrance" parent="Entities" index="0" instance=ExtResource("20_tcd0x")]
z_index = -1 z_index = -1
position = Vector2(576, 416) position = Vector2(576, 416)
@ -683,47 +721,47 @@ position = Vector2(256, -9)
position = Vector2(80, 373) position = Vector2(80, 373)
[node name="Centurion" parent="Entities" index="7" instance=ExtResource("30_qfl2k")] [node name="Centurion" parent="Entities" index="7" instance=ExtResource("30_qfl2k")]
material = SubResource("ShaderMaterial_ctg4t") material = SubResource("ShaderMaterial_62mjn")
position = Vector2(-360, 31) position = Vector2(-360, 31)
[node name="Centurion2" parent="Entities" index="8" instance=ExtResource("30_qfl2k")] [node name="Centurion2" parent="Entities" index="8" instance=ExtResource("30_qfl2k")]
material = SubResource("ShaderMaterial_h8que") material = SubResource("ShaderMaterial_fm6gf")
position = Vector2(-224, 131) position = Vector2(-224, 131)
[node name="Legionary" parent="Entities" index="9" instance=ExtResource("27_84gw4")] [node name="Legionary" parent="Entities" index="9" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_o5ihe") material = SubResource("ShaderMaterial_5r1uw")
position = Vector2(-214, 72) position = Vector2(-214, 72)
[node name="Legionary2" parent="Entities" index="10" instance=ExtResource("27_84gw4")] [node name="Legionary2" parent="Entities" index="10" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_6hrf6") material = SubResource("ShaderMaterial_mg6p2")
position = Vector2(-496, 15) position = Vector2(-496, 15)
[node name="Legionary3" parent="Entities" index="11" instance=ExtResource("27_84gw4")] [node name="Legionary3" parent="Entities" index="11" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_wipup") material = SubResource("ShaderMaterial_pasr8")
position = Vector2(-240, 152) position = Vector2(-240, 152)
[node name="Legionary4" parent="Entities" index="12" instance=ExtResource("27_84gw4")] [node name="Legionary4" parent="Entities" index="12" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_4w0mf") material = SubResource("ShaderMaterial_ssyug")
position = Vector2(-300, 384) position = Vector2(-300, 384)
[node name="Legionary5" parent="Entities" index="13" instance=ExtResource("27_84gw4")] [node name="Legionary5" parent="Entities" index="13" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_76uvw") material = SubResource("ShaderMaterial_qdufc")
position = Vector2(-300, 401) position = Vector2(-300, 401)
[node name="Legionary6" parent="Entities" index="14" instance=ExtResource("27_84gw4")] [node name="Legionary6" parent="Entities" index="14" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_w515t") material = SubResource("ShaderMaterial_h8ake")
position = Vector2(-316, 425) position = Vector2(-316, 425)
[node name="Legionary7" parent="Entities" index="15" instance=ExtResource("27_84gw4")] [node name="Legionary7" parent="Entities" index="15" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_1jw68") material = SubResource("ShaderMaterial_ircpp")
position = Vector2(-300, 449) position = Vector2(-300, 449)
[node name="Legionary8" parent="Entities" index="16" instance=ExtResource("27_84gw4")] [node name="Legionary8" parent="Entities" index="16" instance=ExtResource("27_84gw4")]
material = SubResource("ShaderMaterial_88cs5") material = SubResource("ShaderMaterial_bmcii")
position = Vector2(-404, 505) position = Vector2(-404, 505)
[node name="Cultist" parent="Entities" index="17" instance=ExtResource("30_xj4yo")] [node name="Cultist" parent="Entities" index="17" instance=ExtResource("30_xj4yo")]
material = SubResource("ShaderMaterial_f3see") material = SubResource("ShaderMaterial_0d3a7")
position = Vector2(191, 567) position = Vector2(191, 567)
[node name="ArenaEntrance" type="Marker2D" parent="Markers" index="0"] [node name="ArenaEntrance" type="Marker2D" parent="Markers" index="0"]