Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
Binary file added assets/audio/Level 01 v2.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions assets/audio/Level 01 v2.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://dahovnd54bkc4"
path="res://.godot/imported/Level 01 v2.wav-9b5202b183bae00f237b476fb8465e25.sample"

[deps]

source_file="res://assets/audio/Level 01 v2.wav"
dest_files=["res://.godot/imported/Level 01 v2.wav-9b5202b183bae00f237b476fb8465e25.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
Binary file added assets/audio/TracBmLpA.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions assets/audio/TracBmLpA.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://d4hxflnr8qhka"
path="res://.godot/imported/TracBmLpA.wav-d18309c771cc36a00f3947daa691f3c4.sample"

[deps]

source_file="res://assets/audio/TracBmLpA.wav"
dest_files=["res://.godot/imported/TracBmLpA.wav-d18309c771cc36a00f3947daa691f3c4.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
Binary file added assets/audio/TracBmLpB.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions assets/audio/TracBmLpB.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://qg4blifye65v"
path="res://.godot/imported/TracBmLpB.wav-da7307ef26bf5e4c4b014060c8da5a7d.sample"

[deps]

source_file="res://assets/audio/TracBmLpB.wav"
dest_files=["res://.godot/imported/TracBmLpB.wav-da7307ef26bf5e4c4b014060c8da5a7d.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
Binary file added assets/audio/TracBmLpC.wav
Binary file not shown.
24 changes: 24 additions & 0 deletions assets/audio/TracBmLpC.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[remap]

importer="wav"
type="AudioStreamWAV"
uid="uid://c7ing30bg1aqx"
path="res://.godot/imported/TracBmLpC.wav-2b26df7399e102ef88c771a55cb52e46.sample"

[deps]

source_file="res://assets/audio/TracBmLpC.wav"
dest_files=["res://.godot/imported/TracBmLpC.wav-2b26df7399e102ef88c771a55cb52e46.sample"]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2
24 changes: 24 additions & 0 deletions default_bus_layout.tres
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,27 @@ bus/3/mute = false
bus/3/bypass_fx = false
bus/3/volume_db = 0.0
bus/3/send = &"Player Sounds"
bus/4/name = &"Background Sound"
bus/4/solo = false
bus/4/mute = false
bus/4/bypass_fx = false
bus/4/volume_db = 0.0
bus/4/send = &"Master"
bus/5/name = &"Background Music"
bus/5/solo = false
bus/5/mute = false
bus/5/bypass_fx = false
bus/5/volume_db = 0.0
bus/5/send = &"Background Sound"
bus/6/name = &"Wind"
bus/6/solo = false
bus/6/mute = false
bus/6/bypass_fx = false
bus/6/volume_db = 0.0
bus/6/send = &"Background Sound"
bus/7/name = &"Tractor Beam"
bus/7/solo = false
bus/7/mute = false
bus/7/bypass_fx = false
bus/7/volume_db = 0.0
bus/7/send = &"Background Sound"
36 changes: 36 additions & 0 deletions scenes/game/levels/audio_stream_player.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
extends AudioStreamPlayer

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if(!playing):
play()
pass


func _on_breeze_section_area_shape_entered(area_rid: RID, area: Area2D, area_shape_index: int, local_shape_index: int) -> void:
pass # Replace with function body.

func _on_wind_section_area_shape_entered(area_rid: RID, area: Area2D, area_shape_index: int, local_shape_index: int) -> void:
pass # Replace with function body.


func _on_wind_section_body_entered(body: Node2D) -> void:
if(body.name == "PlayerCharacter"):
if(self.get_stream_playback() != null):
self.get_stream_playback().switch_to_clip_by_name(&"wind")
pass # Replace with function body.


func _on_breeze_section_body_entered(body: Node2D) -> void:
if(body.name == "PlayerCharacter"):
if(self.get_stream_playback() != null):
self.get_stream_playback().switch_to_clip_by_name(&"breeze")
pass # Replace with function body.


func _on_breeze_section_body_exited(body: Node2D) -> void:
pass # Replace with function body.
1 change: 1 addition & 0 deletions scenes/game/levels/audio_stream_player.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bqtphla8gvmx2
22 changes: 22 additions & 0 deletions scenes/game/levels/breeze_player.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends AudioStreamPlayer

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if(!playing):
play()
pass


func _on_breeze_section_area_shape_entered(area_rid: RID, area: Area2D, area_shape_index: int, local_shape_index: int) -> void:
self.get_stream_playback().switch_to_clip_by_name(&"breeze")
pass # Replace with function body.


func _on_breeze_section_area_shape_exited(area_rid: RID, area: Area2D, area_shape_index: int, local_shape_index: int) -> void:
self.get_stream_playback().switch_to_clip_by_name(&"wind")
pass # Replace with function body.
1 change: 1 addition & 0 deletions scenes/game/levels/breeze_player.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://i4lcm00pj2ux
Loading