1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-08-14 12:44:44 -04:00

Brand new soundtrack!

- Nathan's Dress Up finally has the makings of a proper soundtrack. Credit to Avgvsts Tunes. These are midi songs meant for RPGs but I find that they suit this game as well.
This commit is contained in:
Anthony Wilcox 2019-05-04 17:27:43 -04:00
parent e39458cb3c
commit 2ac38db54d
12 changed files with 91 additions and 33 deletions

22
project/src/Soundtrack.gd Normal file
View file

@ -0,0 +1,22 @@
extends AudioStreamPlayer
const tracks = [
'reminiscing',
'together_again',
'at_the_lake',
]
# Called when the node enters the scene tree for the first time.
func _ready():
connect("finished", self, "play_random_song")
play_random_song()
func play_random_song():
randomize()
var rand_db = randi() % tracks.size()
var audiostream = load('res://music/' + tracks[rand_db] + '.ogg')
set_stream(audiostream)
play()