Initial music playing code.

This commit is contained in:
Anna Rose 2019-12-09 14:54:09 -05:00
parent 36ae373f71
commit 15c76c3884
2 changed files with 8 additions and 2 deletions

View File

@ -120,4 +120,3 @@ function generate_map(start)
end
end
end

View File

@ -3,6 +3,13 @@
function init_sound()
-- each name maps to a pattern number to play
music_map = {
desert = 0,
desert = 0
}
end
-- call this once to initialize biome sound.
-- by convention channel 4 should always be the
-- preferred sfx channel, so we unmask it.
function play_biome_music(biome)
music(music_map[biome], 2000, 7)
end