mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
better sound effects
This commit is contained in:
parent
f2cb94d4e3
commit
5503c2d05a
146 changed files with 1189 additions and 88 deletions
|
|
@ -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 )
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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
4
Pegs/Green/HitSFX.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extends AudioStreamPlayer2D
|
||||
|
||||
func _ready():
|
||||
pitch_scale = rand_range(0.75, 2)
|
||||
11
Pegs/Green/HitSFX.tscn
Normal file
11
Pegs/Green/HitSFX.tscn
Normal 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 )
|
||||
|
|
@ -18,6 +18,7 @@ func make_green():
|
|||
|
||||
#finally delete the old peg
|
||||
GameStats.pinks_left -= 1
|
||||
GameStats.add_to_multiplier()
|
||||
win_level()
|
||||
Engine.time_scale = 1
|
||||
queue_free()
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
[ext_resource path="res://Pegs/DefaultPegCollisionShape.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Pegs/Pink/Pink.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 10.2018
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 33.0151
|
||||
|
||||
[node name="PinkPeg" type="StaticBody2D"]
|
||||
|
|
@ -18,7 +18,7 @@ collision_layer = 0
|
|||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RegularCollision"]
|
||||
shape = SubResource( 2 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="SlowmoTimer" type="Timer" parent="."]
|
||||
wait_time = 0.075
|
||||
|
|
@ -34,7 +34,7 @@ collision_layer = 0
|
|||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LastPegCollision"]
|
||||
shape = SubResource( 1 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[connection signal="body_entered" from="RegularCollision" to="." method="_on_Area2D_body_entered"]
|
||||
[connection signal="body_exited" from="RegularCollision" to="." method="_on_Area2D_body_exited"]
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ func make_green():
|
|||
green_bar.global_rotation = global_rotation
|
||||
|
||||
main.add_child(green_bar)
|
||||
GameStats.add_to_multiplier()
|
||||
queue_free()
|
||||
|
||||
func bouncy():
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ func make_green():
|
|||
var main = get_tree().current_scene
|
||||
main.add_child(green_peg)
|
||||
|
||||
# increase multiplyier
|
||||
GameStats.add_to_multiplier()
|
||||
|
||||
#finally delete the old peg
|
||||
queue_free()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue