38 lines
966 B
Plaintext
38 lines
966 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Scenes/LaserHit.gd" type="Script" id=1]
|
|
[ext_resource path="res://SFX/Hit.wav" type="AudioStream" id=2]
|
|
|
|
[sub_resource type="ParticlesMaterial" id=1]
|
|
lifetime_randomness = 1.0
|
|
emission_shape = 1
|
|
emission_sphere_radius = 1.0
|
|
flag_disable_z = true
|
|
spread = 180.0
|
|
gravity = Vector3( 0, 0, 0 )
|
|
initial_velocity = 25.0
|
|
initial_velocity_random = 1.0
|
|
orbit_velocity = 0.0
|
|
orbit_velocity_random = 0.0
|
|
scale = 1.5
|
|
|
|
[node name="LaserHit" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="HitParticles" type="Particles2D" parent="."]
|
|
emitting = false
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
randomness = 1.0
|
|
process_material = SubResource( 1 )
|
|
|
|
[node name="HitSound" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 2 )
|
|
autoplay = true
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|