music changes to some ch1 scenes, add another music channel for crossfade effect

This commit is contained in:
2021-07-01 21:09:46 +01:00
parent e1eee3852d
commit 075743f063
6 changed files with 41 additions and 18 deletions

View File

@ -23,8 +23,11 @@ init python:
picked = random.randint(0,length - 1)
fileName = files[picked]
renpy.show(fileName, at_list=[randPosition])
# extra music channel so we can do crossfade instead of fadeout followed by fadein
renpy.music.register_channel("music1","sfx",True,tight=True)
# allows playing looped ambience alongside music
renpy.music.register_channel("ambient","sfx",True,tight=True)
renpy.music.register_channel("ambient1","sfx",True,tight=True)
#for issue #13 not finalized
#if persistent.scroll == True:
# config.keymap['dismiss'].append('mousedown_5')