better sound effects

This commit is contained in:
zoe 2021-09-28 17:55:03 +02:00
parent f2cb94d4e3
commit 5503c2d05a
146 changed files with 1189 additions and 88 deletions

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Pegs/Green/bar.png" type="Texture" id=1]
[ext_resource path="res://Pegs/Green/GreenBar.gd" type="Script" id=2]
[ext_resource path="res://Pegs/Green/GraceTimer.tscn" type="PackedScene" id=3]
[ext_resource path="res://Pegs/Green/HitSFX.tscn" type="PackedScene" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 3 )
@ -41,6 +42,8 @@ shape = SubResource( 2 )
[node name="GraceTimer" parent="." instance=ExtResource( 3 )]
[node name="HitSFX" parent="." instance=ExtResource( 4 )]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/spawn = SubResource( 3 )

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Pegs/Green/green.png" type="Texture" id=1]
[ext_resource path="res://Pegs/Green/GreenPeg.gd" type="Script" id=2]
[ext_resource path="res://Pegs/Green/GraceTimer.tscn" type="PackedScene" id=3]
[ext_resource path="res://Pegs/DefaultPegCollisionShape.tscn" type="PackedScene" id=4]
[ext_resource path="res://Pegs/Green/GreenPegAnimationPlayer.gd" type="Script" id=5]
[ext_resource path="res://Pegs/Green/HitSFX.tscn" type="PackedScene" id=6]
[sub_resource type="PhysicsMaterial" id=1]
@ -38,6 +39,8 @@ texture = ExtResource( 1 )
anims/GetBigger = SubResource( 2 )
script = ExtResource( 5 )
[node name="HitSFX" parent="." instance=ExtResource( 6 )]
[node name="GraceTimer" parent="." instance=ExtResource( 3 )]
[connection signal="timeout" from="GraceTimer" to="." method="_on_GraceTimer_timeout"]

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=6 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="ParticlesMaterial" id=1]
emission_shape = 1
@ -30,3 +32,9 @@ local_coords = false
process_material = SubResource( 1 )
texture = ExtResource( 2 )
script = ExtResource( 1 )
[node name="HitSFX" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
autoplay = true
bus = "SFX"
script = ExtResource( 4 )

4
Pegs/Green/HitSFX.gd Normal file
View file

@ -0,0 +1,4 @@
extends AudioStreamPlayer2D
func _ready():
pitch_scale = rand_range(0.75, 2)

11
Pegs/Green/HitSFX.tscn Normal file
View file

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Pegs/Green/HitSFX.gd" type="Script" id=1]
[ext_resource path="res://SFX/greenExplodes.wav" type="AudioStream" id=2]
[node name="HitSFX" type="AudioStreamPlayer2D"]
stream = ExtResource( 2 )
volume_db = 8.0
autoplay = true
bus = "SFX"
script = ExtResource( 1 )