pegchamp/Pegs/Green/HitParticles.tscn

70 lines
1.4 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Pegs/HitParticles.gd" type="Script" id=1]
[ext_resource path="res://Effects/greenParticle.png" type="Texture" id=2]
[ext_resource path="res://SFX/greenExplodes.wav" type="AudioStream" id=3]
[ext_resource path="res://Pegs/Green/HitSFX.gd" type="Script" id=4]
[sub_resource type="VisualShader" id=1]
code = "shader_type spatial;
render_mode blend_add, specular_schlick_ggx, unshaded;
void vertex() {
// Output:0
}
void fragment() {
// Output:0
}
void light() {
// Output:0
}
"
modes/blend = 1
flags/unshaded = true
[sub_resource type="ShaderMaterial" id=2]
shader = SubResource( 1 )
[sub_resource type="ParticlesMaterial" id=3]
emission_shape = 1
emission_sphere_radius = 2.0
flag_disable_z = true
direction = Vector3( 0, 0, 0 )
spread = 24.0
gravity = Vector3( 0, 100, 0 )
initial_velocity = 100.0
initial_velocity_random = 0.5
orbit_velocity = 0.0
orbit_velocity_random = 0.0
radial_accel_random = 1.0
damping = 50.0
damping_random = 0.5
[node name="HitParticles" type="Particles2D"]
material = SubResource( 2 )
scale = Vector2( 1.6, 1.6 )
z_index = -10
emitting = false
amount = 16
lifetime = 5.0
one_shot = true
explosiveness = 0.95
local_coords = false
process_material = SubResource( 3 )
texture = ExtResource( 2 )
script = ExtResource( 1 )
[node name="HitSFX" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
autoplay = true
bus = "SFX"
script = ExtResource( 4 )