Files
IWaniHugThatGator-Demo-Public/game/script.rpy
2024-04-21 13:45:17 -05:00

59 lines
2.3 KiB
Plaintext

init -1000 python:
if persistent.newmods_default_state == None:
persistent.newmods_default_state = True
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)
if persistent.scroll == True:
config.keymap['dismiss'].append('mousedown_4')
persistent.splashtype = random.randint(0,2000 - 1)
if config.developer:
default persistent.enable_debug_scores = True
default persistent.enable_chapter_select = True
else:
default persistent.enable_debug_scores = False
default persistent.enable_chapter_select = False
default persistent.scroll = False
default persistent.autoup = False
default persistent.lewd = False
default persistent.show_mod_screenshots = True
# This is neccesary for all functions that use get_placement like the crowd and liz functions due to 8.2.0 switching the output to position() data types
# There's no reason not to have this off currently, otherwise it's an extra step in getting a position value out of it with the current setup of most of the functions
# and there's no need to have 'interpolatability' with values using ATL.
# If someone can prove me wrong and refactoring the functions are good, be my guest.
define config.mixed_position = False
define config.defer_tl_scripts = True
label before_main_menu:
if not persistent.epilogue:
$ renpy.music.play("<loop 61.931333>" + DEFAULT_MUSIC_FILEPATH + "mus_titlescreen" + DEFAULT_MUSIC_EXTENSION, channel="music", loop=True)
else:
$ renpy.music.play(DEFAULT_MUSIC_FILEPATH + "mus_complete" + DEFAULT_MUSIC_EXTENSION, channel="music", loop=True)
if (persistent.languaged_up is None):
$ preferences.set_volume('ui', config.default_sfx_volume)
$ persistent.languaged_up = True
call screen lang_sel
$ grant_missing()
return
#actually play the game
label start:
call storyline from _call_storyline