Skip to content

Commit

Permalink
Merge pull request #21 from Nogal/burps
Browse files Browse the repository at this point in the history
added sound effects
  • Loading branch information
Nogal committed Nov 11, 2023
2 parents e59673a + bf1d36b commit 590ca4d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Binary file added assets/sfx/eating-sound-effect-36186.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions assets/sfx/eating-sound-effect-36186.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://pyuqtlc2pc0s"
path="res://.godot/imported/eating-sound-effect-36186.mp3-08c0a23f31fe650efc6c92d62fe689e1.mp3str"

[deps]

source_file="res://assets/sfx/eating-sound-effect-36186.mp3"
dest_files=["res://.godot/imported/eating-sound-effect-36186.mp3-08c0a23f31fe650efc6c92d62fe689e1.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
1 change: 1 addition & 0 deletions src/Player/steven.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func _ready():

func grow_steven_grow():
var tween = get_tree().create_tween()
get_node("Burp").play()
if (int(self.scale.x * 10) + 1) % 5 == 0:
MusicPlayer._song_go_up()
self.scale += Vector2(0.05, 0.05)
Expand Down
6 changes: 5 additions & 1 deletion src/Player/steven.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://djkdm2yb64ss4"]
[gd_scene load_steps=6 format=3 uid="uid://djkdm2yb64ss4"]

[ext_resource type="Script" path="res://src/Player/steven.gd" id="1_mfkg0"]
[ext_resource type="Texture2D" uid="uid://bybqr876fm8l0" path="res://assets/art/fishPack_vector.svg" id="2_f8ojf"]
[ext_resource type="AudioStream" uid="uid://pyuqtlc2pc0s" path="res://assets/sfx/eating-sound-effect-36186.mp3" id="3_todop"]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_fxg45"]
radius = 8.0
Expand Down Expand Up @@ -35,4 +36,7 @@ collision_mask = 3
rotation = 1.5708
shape = SubResource("CapsuleShape2D_ih3yo")

[node name="Burp" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_todop")

[connection signal="area_entered" from="BodyArea" to="." method="_on_body_area_entered"]

0 comments on commit 590ca4d

Please sign in to comment.