mirror of
https://github.com/Cookie-CHR/LD54-SPAce-ltd.git
synced 2024-11-23 07:44:20 +00:00
57509881c7
Main upload is now complete! I hope
19 lines
382 B
GDScript
19 lines
382 B
GDScript
extends AudioStreamPlayer
|
|
|
|
var curr_music = "res://Music/Silence.mp3"
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
volume_db = -2
|
|
if(not Muter.mute):
|
|
play()
|
|
|
|
func change_music (new_music):
|
|
if new_music != "":
|
|
if curr_music != new_music:
|
|
curr_music = new_music
|
|
stop()
|
|
set_stream(load(new_music))
|
|
if(not Muter.mute):
|
|
play()
|