blergh
This commit is contained in:
8
effects/explosion.gd
Normal file
8
effects/explosion.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Node3D
|
||||
|
||||
|
||||
func play():
|
||||
$Fire.restart()
|
||||
$Smoke.restart()
|
||||
$Debris.restart()
|
||||
get_tree().create_timer(2).timeout.connect(free)
|
||||
117
effects/explosion.tscn
Normal file
117
effects/explosion.tscn
Normal file
@@ -0,0 +1,117 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://5q0aw58r81vp"]
|
||||
|
||||
[ext_resource type="Script" path="res://effects/explosion.gd" id="1_jtrlf"]
|
||||
[ext_resource type="Texture2D" uid="uid://dg28fd1gyn80b" path="res://effects/flare_01.png" id="1_pbfcp"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_jmhc0"]
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0.00397878, 0), 0.0, 0.0, 0, 0, Vector2(0.212202, 1.77182), 0.0, 0.0, 0, 0, Vector2(0.411141, 1.73482), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_4iamg"]
|
||||
curve = SubResource("Curve_jmhc0")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_rwstt"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 2.189
|
||||
damping_max = 2.189
|
||||
scale_curve = SubResource("CurveTexture_4iamg")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_284k0"]
|
||||
shading_mode = 2
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(1, 0.627451, 0.152941, 0.737255)
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 14.52
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_py84f"]
|
||||
material = SubResource("StandardMaterial3D_284k0")
|
||||
radial_segments = 8
|
||||
rings = 4
|
||||
|
||||
[sub_resource type="Curve" id="Curve_vev3p"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_kom26"]
|
||||
curve = SubResource("Curve_vev3p")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_dnohh"]
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.129973, 1.67932), 0.0, 0.0, 0, 0, Vector2(1, 2), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_e8dot"]
|
||||
curve = SubResource("Curve_dnohh")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cdl35"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 80.0
|
||||
initial_velocity_min = 2.0
|
||||
initial_velocity_max = 2.0
|
||||
gravity = Vector3(0, 3, 0)
|
||||
scale_curve = SubResource("CurveTexture_e8dot")
|
||||
alpha_curve = SubResource("CurveTexture_kom26")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_eobj7"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(0.286275, 0.286275, 0.286275, 0.639216)
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_3m6v6"]
|
||||
material = SubResource("StandardMaterial3D_eobj7")
|
||||
radial_segments = 8
|
||||
rings = 4
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_xnx2l"]
|
||||
particle_flag_align_y = true
|
||||
angle_min = -360.0
|
||||
angle_max = 360.0
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
gravity = Vector3(0, -5, 0)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m640o"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(1, 0.784318, 0.564951, 1)
|
||||
albedo_texture = ExtResource("1_pbfcp")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_ixem5"]
|
||||
material = SubResource("StandardMaterial3D_m640o")
|
||||
|
||||
[node name="Explosion" type="Node3D"]
|
||||
script = ExtResource("1_jtrlf")
|
||||
|
||||
[node name="Fire" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_rwstt")
|
||||
draw_pass_1 = SubResource("SphereMesh_py84f")
|
||||
|
||||
[node name="Smoke" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
amount = 4
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_cdl35")
|
||||
draw_pass_1 = SubResource("SphereMesh_3m6v6")
|
||||
|
||||
[node name="Debris" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
process_material = SubResource("ParticleProcessMaterial_xnx2l")
|
||||
draw_pass_1 = SubResource("QuadMesh_ixem5")
|
||||
120
effects/explosion.tscn.bak
Normal file
120
effects/explosion.tscn.bak
Normal file
@@ -0,0 +1,120 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://5q0aw58r81vp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dg28fd1gyn80b" path="res://effects/flare_01.png" id="1_pbfcp"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_jmhc0"]
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0.00397878, 0), 0.0, 0.0, 0, 0, Vector2(0.212202, 1.77182), 0.0, 0.0, 0, 0, Vector2(0.411141, 1.73482), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_4iamg"]
|
||||
curve = SubResource("Curve_jmhc0")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_rwstt"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 2.189
|
||||
damping_max = 2.189
|
||||
scale_curve = SubResource("CurveTexture_4iamg")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_284k0"]
|
||||
shading_mode = 2
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(1, 0.627451, 0.152941, 0.737255)
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 14.52
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_py84f"]
|
||||
material = SubResource("StandardMaterial3D_284k0")
|
||||
radial_segments = 8
|
||||
rings = 4
|
||||
|
||||
[sub_resource type="Curve" id="Curve_vev3p"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_kom26"]
|
||||
curve = SubResource("Curve_vev3p")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_dnohh"]
|
||||
max_value = 2.0
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.129973, 1.67932), 0.0, 0.0, 0, 0, Vector2(1, 2), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_e8dot"]
|
||||
curve = SubResource("Curve_dnohh")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cdl35"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 80.0
|
||||
initial_velocity_min = 2.0
|
||||
initial_velocity_max = 2.0
|
||||
gravity = Vector3(0, 3, 0)
|
||||
scale_curve = SubResource("CurveTexture_e8dot")
|
||||
alpha_curve = SubResource("CurveTexture_kom26")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_eobj7"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(0.286275, 0.286275, 0.286275, 0.639216)
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_3m6v6"]
|
||||
material = SubResource("StandardMaterial3D_eobj7")
|
||||
radial_segments = 8
|
||||
rings = 4
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_xnx2l"]
|
||||
particle_flag_align_y = true
|
||||
angle_min = -360.0
|
||||
angle_max = 360.0
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
gravity = Vector3(0, -5, 0)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m640o"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(1, 0.784318, 0.564951, 1)
|
||||
albedo_texture = ExtResource("1_pbfcp")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_ixem5"]
|
||||
material = SubResource("StandardMaterial3D_m640o")
|
||||
|
||||
[node name="Explosion" type="Node3D"]
|
||||
|
||||
[node name="Fire" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_rwstt")
|
||||
draw_pass_1 = SubResource("SphereMesh_py84f")
|
||||
|
||||
[node name="Smoke" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
amount = 4
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
fixed_fps = 60
|
||||
process_material = SubResource("ParticleProcessMaterial_cdl35")
|
||||
draw_pass_1 = SubResource("SphereMesh_3m6v6")
|
||||
|
||||
[node name="Debris" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
process_material = SubResource("ParticleProcessMaterial_xnx2l")
|
||||
draw_pass_1 = SubResource("QuadMesh_ixem5")
|
||||
|
||||
[connection signal="ready" from="." to="Fire" method="restart"]
|
||||
[connection signal="ready" from="." to="Smoke" method="restart"]
|
||||
[connection signal="ready" from="." to="Debris" method="restart"]
|
||||
[connection signal="finished" from="Smoke" to="." method="free"]
|
||||
BIN
effects/flare_01.png
Normal file
BIN
effects/flare_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
35
effects/flare_01.png.import
Normal file
35
effects/flare_01.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dg28fd1gyn80b"
|
||||
path.s3tc="res://.godot/imported/flare_01.png-969275195223e658fca4e4834cb8d7d1.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://effects/flare_01.png"
|
||||
dest_files=["res://.godot/imported/flare_01.png-969275195223e658fca4e4834cb8d7d1.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
effects/light_01.png
Normal file
BIN
effects/light_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
35
effects/light_01.png.import
Normal file
35
effects/light_01.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://byda217s5cq8v"
|
||||
path.s3tc="res://.godot/imported/light_01.png-043e946f6df880e55d2a4615e19b1007.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://effects/light_01.png"
|
||||
dest_files=["res://.godot/imported/light_01.png-043e946f6df880e55d2a4615e19b1007.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
effects/smoke_02.png
Normal file
BIN
effects/smoke_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 95 KiB |
35
effects/smoke_02.png.import
Normal file
35
effects/smoke_02.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://drr1nogesyvkd"
|
||||
path.s3tc="res://.godot/imported/smoke_02.png-183e92dff4c0a61c80d3c0b389ef903b.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://effects/smoke_02.png"
|
||||
dest_files=["res://.godot/imported/smoke_02.png-183e92dff4c0a61c80d3c0b389ef903b.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
effects/star_06.png
Normal file
BIN
effects/star_06.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
35
effects/star_06.png.import
Normal file
35
effects/star_06.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://t3u0gir8ycew"
|
||||
path.s3tc="res://.godot/imported/star_06.png-85536df29330704f6b3b20e0189245b8.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://effects/star_06.png"
|
||||
dest_files=["res://.godot/imported/star_06.png-85536df29330704f6b3b20e0189245b8.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
effects/trace_02.png
Normal file
BIN
effects/trace_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
35
effects/trace_02.png.import
Normal file
35
effects/trace_02.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b8koxuqbiulnc"
|
||||
path.s3tc="res://.godot/imported/trace_02.png-01c92752c6308fa8bcb91dddf30a26f4.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://effects/trace_02.png"
|
||||
dest_files=["res://.godot/imported/trace_02.png-01c92752c6308fa8bcb91dddf30a26f4.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Reference in New Issue
Block a user