Files
IWaniHugThatGator-Demo-Public/game/script.rpy
2025-01-02 03:46:35 -06:00

37 lines
1.3 KiB
Plaintext

init python:
#import random
#import webbrowser
# multiple audio channels for ambience and such
renpy.music.register_channel("music1","music",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)
renpy.music.register_channel("ambient4","sfx",True,tight=True)
renpy.music.register_channel("sound2","sfx",False,tight=True)
persistent.splashtype = random.randint(0,2000 - 1)
define config.defer_tl_scripts = True
label before_main_menu:
if not persistent.epilogue or is_demo:
$ renpy.music.play("<loop 61.931333>" + DEFAULT_MUSIC_FILEPATH + "mus_titlescreen" + DEFAULT_MUSIC_EXTENSION, channel="music", loop=True)
else:
$ renpy.music.play("<loop 2.580167>" + DEFAULT_MUSIC_FILEPATH + "mus_complete" + DEFAULT_MUSIC_EXTENSION, channel="music", loop=True)
if preferences.language == None:
$ preferences.language = 'en'
if (persistent.languaged_up is None):
$ preferences.set_mixer("ui", config.default_sfx_volume)
call screen lang_sel
if not is_demo:
$ grant_missing()
return
#actually play the game
label start:
call storyline from _call_storyline