File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [remap]
2+
3+ importer="oggvorbisstr"
4+ type="AudioStreamOggVorbis"
5+ uid="uid://bx1joarpc14j5"
6+ path="res://.godot/imported/538066__stevielematt__boing.ogg-597836a9032036f4f5fbbab88604eec3.oggvorbisstr"
7+
8+ [deps]
9+
10+ source_file="res://assets/sounds/538066__stevielematt__boing.ogg"
11+ dest_files=["res://.godot/imported/538066__stevielematt__boing.ogg-597836a9032036f4f5fbbab88604eec3.oggvorbisstr"]
12+
13+ [params]
14+
15+ loop=false
16+ loop_offset=0
17+ bpm=0
18+ beat_count=0
19+ bar_beats=4
Original file line number Diff line number Diff line change 1- [gd_scene load_steps =4 format =3 uid ="uid://8st4scqt06l8" ]
1+ [gd_scene load_steps =8 format =3 uid ="uid://8st4scqt06l8" ]
22
33[ext_resource type ="Script" uid ="uid://umb21eb2y1oj" path ="res://scripts/player.gd" id ="1_w3ms2" ]
44[ext_resource type ="SpriteFrames" uid ="uid://bo581k1esb50n" path ="res://components/player/spriteframes-red.tres" id ="2_msaml" ]
5+ [ext_resource type ="AudioStream" uid ="uid://bx1joarpc14j5" path ="res://assets/sounds/538066__stevielematt__boing.ogg" id ="3_wa6cj" ]
56
67[sub_resource type ="CapsuleShape2D" id ="CapsuleShape2D_7x5a4" ]
78radius = 31.0
89height = 92.0
910
11+ [sub_resource type ="AudioStreamRandomizer" id ="AudioStreamRandomizer_mpawu" ]
12+ random_pitch = 1.1
13+ streams_count = 1
14+ stream_0/stream = ExtResource ("3_wa6cj" )
15+
1016[node name ="Player" type ="CharacterBody2D" groups =["players" ]]
1117collision_layer = 3
1218collision_mask = 5
@@ -39,3 +45,9 @@ animation = &"all"
3945position = Vector2 (0 , -46 )
4046shape = SubResource ("CapsuleShape2D_7x5a4" )
4147one_way_collision = true
48+
49+ [node name ="SoundEffects" type ="Node" parent ="." ]
50+
51+ [node name ="JumpSFX" type ="AudioStreamPlayer" parent ="SoundEffects" ]
52+ unique_name_in_owner = true
53+ stream = SubResource ("AudioStreamRandomizer_mpawu" )
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ var original_position: Vector2
5656@onready var _initial_sprite_frames : SpriteFrames = % AnimatedSprite2D .sprite_frames
5757@onready var _double_jump_particles : CPUParticles2D = % DoubleJumpParticles
5858
59+ @onready var _jump_sfx : AudioStreamPlayer = % JumpSFX
60+
5961
6062func _set_sprite_frames (new_sprite_frames ):
6163 sprite_frames = new_sprite_frames
@@ -96,6 +98,7 @@ func _jump():
9698 _double_jump_particles .emitting = true
9799 elif double_jump :
98100 double_jump_armed = true
101+ _jump_sfx .play ()
99102
100103
101104func stomp ():
You can’t perform that action at this time.
0 commit comments