mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 05:13:47 +00:00
Grazing particles and sound
This commit is contained in:
parent
66fbda2b2b
commit
847d33ad4e
14 changed files with 246 additions and 134 deletions
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bi3f14klscvlw"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bi3f14klscvlw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_jnw2a"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfldr7l7dearo" path="res://Sprites/Bullets/mid_bullet_red.png" id="2_4q6eb"]
|
||||
[ext_resource type="PackedScene" uid="uid://m88tchaflpln" path="res://Scenes/Misc/graze_sound.tscn" id="3_1ntfi"]
|
||||
[ext_resource type="PackedScene" uid="uid://ce83htrsiu7qa" path="res://Scenes/Misc/graze_particles.tscn" id="4_q1b4v"]
|
||||
[ext_resource type="Material" uid="uid://k221i4n2f67e" path="res://Resources/Particles/graze_particle.tres" id="5_q1b4v"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"]
|
||||
radius = 2.23607
|
||||
|
|
@ -26,6 +27,7 @@ shape = SubResource("CircleShape2D_jxptd")
|
|||
[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("3_1ntfi")]
|
||||
|
||||
[node name="GrazeParticles" parent="." instance=ExtResource("4_q1b4v")]
|
||||
process_material = ExtResource("5_q1b4v")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,22 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://d28e1t2c0lwbp"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://d28e1t2c0lwbp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_xnqcl"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfldr7l7dearo" path="res://Sprites/Bullets/mid_bullet_red.png" id="2_xnqcl"]
|
||||
[ext_resource type="AudioStream" uid="uid://b3rm0vj6x54k4" path="res://SFX/th_knockoff_sfx/click_collect.wav" id="3_xyes7"]
|
||||
[ext_resource type="Material" uid="uid://ogkwkokxevat" path="res://Resources/Particles/graze_particle_3D.tres" id="4_t5ure"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
|
||||
radius = 0.161126
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t5ure"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_nd0aw"]
|
||||
lightmap_size_hint = Vector2i(2, 2)
|
||||
material = SubResource("StandardMaterial3D_t5ure")
|
||||
size = Vector2(0.1, 0.1)
|
||||
orientation = 1
|
||||
|
||||
[node name="Bullet" type="Area3D" groups=["bullets"]]
|
||||
collision_layer = 128
|
||||
collision_mask = 23
|
||||
|
|
@ -24,6 +35,20 @@ shape = SubResource("SphereShape3D_pklkt")
|
|||
|
||||
[node name="VisibleOnScreenNotifier" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
|
||||
[node name="GrazeSound" type="AudioStreamPlayer3D" parent="."]
|
||||
stream = ExtResource("3_xyes7")
|
||||
bus = &"Effects"
|
||||
|
||||
[node name="GrazeParticles" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(0.70710677, 0.49999997, 0.49999997, 0, 0.70710677, -0.70710677, -0.70710677, 0.49999997, 0.49999997, 0, 0, 0)
|
||||
emitting = false
|
||||
amount = 2
|
||||
lifetime = 0.2
|
||||
one_shot = true
|
||||
local_coords = true
|
||||
process_material = ExtResource("4_t5ure")
|
||||
draw_pass_1 = SubResource("QuadMesh_nd0aw")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue