2021-06-05 04:20:33 +02:00
#TODO
2021-09-19 14:56:49 +02:00
#<strike>add chadshark</strike>
2021-06-06 00:33:49 +02:00
#The game needs something like a CG gallery, if only to track your progress.
2021-06-05 04:20:33 +02:00
#remove sex
#troll /adgd/
#idk debug lol
#just like make game
#??????
#Profit&Export
2021-06-12 18:50:10 +02:00
#/usr/bin/touch gf - cannot touch 'gf': Permission denied
2021-06-05 04:20:33 +02:00
2021-06-12 22:53:25 +02:00
#To whoever looked at the old script file of this, woe be upon ye, because it was an absolute clusterfuck. story scripts are now in the script directory. everything here is just boilerplate code for characters, scenes, transitions, and whatnot.
2022-11-17 08:56:53 +01:00
#Even then (extending to definitions.rpy), it's incredibly inconsistant with how things are named, how things are set up, and there's definitely a lot of optimization that could be had and refactoring needed.
2021-06-12 22:53:25 +02:00
#Why yes all my code was formerly in one massive file called "script" thats 28k lines long, how could you tell?
2021-06-05 04:20:33 +02:00
#Licensed under the GNU AGPL v3, for more information check snootgame.xyz or the LICENSE file that should have came with this work.
2021-10-11 21:31:39 +02:00
init -1 python:
2021-07-04 08:06:59 +02:00
# Modding Support variables
# All mod rpy files must run a small init python script
2021-10-14 23:36:07 +02:00
mod_dir = "mods/"
mod_menu_access = []
2021-07-04 08:06:59 +02:00
2021-06-05 04:20:33 +02:00
init python:
2022-11-02 02:07:52 +01:00
2021-07-04 08:06:59 +02:00
import random
#function for insult layers
def showCG():
2021-09-02 04:18:57 +02:00
files = ["text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9"]
2021-06-05 04:20:33 +02:00
length = len(files)
picked = random.randint(0,length - 1)
fileName = files[picked]
renpy.show(fileName, at_list=[randPosition])
2024-10-02 00:11:18 +02:00
2021-08-02 15:38:11 +02:00
# 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)
2023-01-01 02:36:22 +01:00
renpy.music.register_channel("music2","music",True,tight=True)
2021-08-02 15:38:11 +02:00
# 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)
2021-10-14 22:58:12 +02:00
renpy.music.register_channel("ambient3","sfx",True,tight=True)
2024-10-02 00:11:18 +02:00
2021-07-04 08:06:59 +02:00
if persistent.scroll == True:
2021-07-01 08:44:56 +02:00
config.keymap['dismiss'].append('mousedown_4')
2021-10-11 22:12:09 +02:00
elif persistent.scroll == None:
persistent.scroll = False
2023-10-02 07:14:58 +02:00
if persistent.bonus_chapters == None:
if renpy.seen_image("big ending"): #for returning players
persistent.bonus_chapters = 0b111111111
persistent.old_bonus_chapters = 0b111111111
else:
persistent.bonus_chapters = 0b0
persistent.old_bonus_chapters = 0b0
2022-11-02 02:07:52 +01:00
def randomize_choices(choices):
# fine for size of 2
if (renpy.random.randint(0, 1)):
choices.reverse()
return choices
2022-10-27 08:25:15 +02:00
pass
2024-10-02 00:11:18 +02:00
default persistent.lewd = False
default persistent.autoup = False
2022-11-23 10:21:49 +01:00
2021-08-19 16:36:03 +02:00
2021-06-05 04:20:33 +02:00
label start:
2024-08-12 04:15:13 +02:00
2024-08-23 03:04:44 +02:00
$ toggle_debug()
2024-08-09 00:43:36 +02:00
2021-06-18 20:17:21 +02:00
pause 1.0
2024-08-09 00:43:36 +02:00
2024-08-19 03:29:50 +02:00
$ renpy.call(chapter_list[chapter_list_index]) # Call first element of the chapter_list array