mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +01:00
document the few functions in script.rpy
This commit is contained in:
parent
00166f6d3d
commit
cebabce278
1 changed files with 4 additions and 1 deletions
|
@ -22,20 +22,22 @@ init -1 python:
|
|||
|
||||
init python:
|
||||
# extra music channel so we can do crossfade instead of fadeout followed by fadein
|
||||
# TODO: function for stopping both channels with optional fadeout so we don't have to keep track of which channel is playing
|
||||
renpy.music.register_channel("music1","music",True,tight=True)
|
||||
renpy.music.register_channel("music2","music",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)
|
||||
renpy.music.register_channel("ambient2","sfx",True,tight=True)
|
||||
renpy.music.register_channel("ambient3","sfx",True,tight=True)
|
||||
|
||||
# No idea what this does
|
||||
if persistent.scroll == True:
|
||||
config.keymap['dismiss'].append('mousedown_4')
|
||||
elif persistent.scroll == None:
|
||||
persistent.scroll = False
|
||||
|
||||
# Set vars for bonus chapter completion
|
||||
if persistent.bonus_chapters == None:
|
||||
if renpy.seen_image("big ending"): #for returning players
|
||||
persistent.bonus_chapters = 0b111111111
|
||||
|
@ -44,6 +46,7 @@ init python:
|
|||
persistent.bonus_chapters = 0b0
|
||||
persistent.old_bonus_chapters = 0b0
|
||||
|
||||
# Randomizes the placement of choice boxes when a choice menu appears
|
||||
def randomize_choices(choices):
|
||||
# fine for size of 2
|
||||
if (renpy.random.randint(0, 1)):
|
||||
|
|
Loading…
Reference in a new issue