-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
198 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[remap] | ||
|
||
importer="oggvorbisstr" | ||
type="AudioStreamOggVorbis" | ||
uid="uid://ckjo8r6fns8s1" | ||
path="res://.godot/imported/footstep_carpet_000.ogg-7fc69e178033a1e9e6d523b3ad5d8c64.oggvorbisstr" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/audio/footstep_carpet_000.ogg" | ||
dest_files=["res://.godot/imported/footstep_carpet_000.ogg-7fc69e178033a1e9e6d523b3ad5d8c64.oggvorbisstr"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[remap] | ||
|
||
importer="oggvorbisstr" | ||
type="AudioStreamOggVorbis" | ||
uid="uid://bhxo10h1q3e2" | ||
path="res://.godot/imported/footstep_carpet_001.ogg-55367f95ccce42b17c65bfcc70446821.oggvorbisstr" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/audio/footstep_carpet_001.ogg" | ||
dest_files=["res://.godot/imported/footstep_carpet_001.ogg-55367f95ccce42b17c65bfcc70446821.oggvorbisstr"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[remap] | ||
|
||
importer="oggvorbisstr" | ||
type="AudioStreamOggVorbis" | ||
uid="uid://dycvhorndvf1c" | ||
path="res://.godot/imported/footstep_carpet_002.ogg-7f50e85f431176a9e6e1f0fee6f5f006.oggvorbisstr" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/audio/footstep_carpet_002.ogg" | ||
dest_files=["res://.godot/imported/footstep_carpet_002.ogg-7f50e85f431176a9e6e1f0fee6f5f006.oggvorbisstr"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[remap] | ||
|
||
importer="oggvorbisstr" | ||
type="AudioStreamOggVorbis" | ||
uid="uid://dqqkhujcgssj6" | ||
path="res://.godot/imported/footstep_carpet_003.ogg-225d34540a8b097baaad7e189ede3b9a.oggvorbisstr" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/audio/footstep_carpet_003.ogg" | ||
dest_files=["res://.godot/imported/footstep_carpet_003.ogg-225d34540a8b097baaad7e189ede3b9a.oggvorbisstr"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[remap] | ||
|
||
importer="oggvorbisstr" | ||
type="AudioStreamOggVorbis" | ||
uid="uid://bmnew52u2j6r5" | ||
path="res://.godot/imported/footstep_carpet_004.ogg-d01a52dedb8b8b55b92c79ed733fb23f.oggvorbisstr" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/audio/footstep_carpet_004.ogg" | ||
dest_files=["res://.godot/imported/footstep_carpet_004.ogg-d01a52dedb8b8b55b92c79ed733fb23f.oggvorbisstr"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[gd_resource type="AudioBusLayout" format=3 uid="uid://b8tt7dvk5p3il"] | ||
|
||
[resource] | ||
bus/1/name = &"sfx" | ||
bus/1/solo = false | ||
bus/1/mute = false | ||
bus/1/bypass_fx = false | ||
bus/1/volume_db = 0.0 | ||
bus/1/send = &"Master" | ||
bus/2/name = &"music" | ||
bus/2/solo = false | ||
bus/2/mute = false | ||
bus/2/bypass_fx = false | ||
bus/2/volume_db = 0.0 | ||
bus/2/send = &"Master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
scenes/component/random_audio_stream_player_2d_component.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extends AudioStreamPlayer2D | ||
class_name RandomAudioStreamPlayer2DComponent | ||
|
||
@export var streams: Array[AudioStream] | ||
|
||
|
||
func play_random(): | ||
if streams == null || streams.is_empty(): | ||
return | ||
|
||
stream = streams.pick_random() | ||
play() |
7 changes: 7 additions & 0 deletions
7
scenes/component/random_audio_stream_player_2d_component.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bh478361trp2r"] | ||
|
||
[ext_resource type="Script" path="res://scenes/component/random_audio_stream_player_2d_component.gd" id="1_bhpwy"] | ||
|
||
[node name="RandomAudioStreamPlayer2DComponent" type="AudioStreamPlayer2D"] | ||
bus = &"sfx" | ||
script = ExtResource("1_bhpwy") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters