mirror of
https://github.com/Cookie-CHR/LD54-SPAce-ltd.git
synced 2024-11-23 15:54:18 +00:00
11 lines
322 B
GDScript3
11 lines
322 B
GDScript3
|
extends AudioStreamPlayer2D
|
||
|
|
||
|
var choice = { "Title": "res://Music/Space Jazz.mp3",\
|
||
|
"Main": "res://Music/Groove Grove.mp3",\
|
||
|
}
|
||
|
|
||
|
func _ready():
|
||
|
# I usually change music at the pressing of a button, but sometimes it is not possible
|
||
|
if self.name in choice.keys():
|
||
|
MusicPlayer.change_music(choice[self.name])
|