SnootGame/game/storyline.rpy

159 lines
4.4 KiB
Text
Raw Normal View History

2021-09-23 01:06:37 +02:00
init -1 python:
2021-09-23 00:39:56 +02:00
def ending_image():
#0b0000, DCBA, flash the bits with |=, check with &
2021-09-23 00:39:56 +02:00
endings = 0b0000
_e = 0b1
for i in range(1, 5):
fn = "e"+str(i)+"of4"
2021-09-23 00:39:56 +02:00
endings |= (_e * renpy.seen_image(fn))
_e = _e << 0b1
2021-10-16 19:25:12 +02:00
persistent.old_endings = persistent.endings
2021-09-23 00:39:56 +02:00
persistent.endings = endings
2021-06-18 19:59:52 +02:00
label storyline:
2021-06-18 04:01:49 +02:00
call chapter_1
call chapter_2
call chapter_3
call chapter_4
call chapter_5
call chapter_6
call chapter_7
call chapter_8
call chapter_9
call chapter_10
call chapter_11
call get_ending
if _return == 4:
2021-06-18 04:01:49 +02:00
call chapter_11D
call chapter_12D
call chapter_12_5D
2021-06-18 04:01:49 +02:00
call chapter_13D
call chapter_14D
elif _return == 3:
$ tradwife = True
2021-06-18 04:01:49 +02:00
call chapter_11C
call chapter_12C
call chapter_12_5C
2021-06-18 04:01:49 +02:00
call chapter_13C
call chapter_14C
elif _return == 2:
2021-06-18 04:01:49 +02:00
call chapter_11B
call chapter_12B
# no chapter_13 here since the scene is different enough to the other routes for everything to go into 13C
2021-06-18 04:01:49 +02:00
call chapter_13B
call chapter_14B
else:
2021-06-18 04:01:49 +02:00
call chapter_11A
call chapter_12A
2021-10-15 07:09:14 +02:00
call chapter_12_5D
2021-06-18 04:01:49 +02:00
call chapter_13A
call chapter_14A
2021-09-23 00:39:56 +02:00
$ ending_image()
2021-06-18 04:01:49 +02:00
$ renpy.quit()
2021-09-23 00:39:56 +02:00
$ ending_image()
call .ending
2021-06-18 20:02:55 +02:00
return
2021-06-18 04:01:49 +02:00
2021-10-11 22:27:42 +02:00
2022-11-16 06:33:16 +01:00
image credits_coverup:
"black"
crop (0, 0, 1920, 1080)
image b_credits_text = Composite(
(1920, 12800),
(0, 390), "credits_hbox",
(0, 12225), "b_sketch"
)
image c_credits_text = Composite(
(1920, 12800),
(0, 390), "credits_hbox",
(0, 12225), "c_sketch"
)
image d_credits_text = Composite(
(1920, 12800),
(0, 390), "credits_hbox",
(0, 12225), "d_sketch"
)
# Anytime the credits changes to include more translators, you're just going to have to guess what the correct
# value to offset everything is again. Mainly concerning values that control the panning destination of credits text,
# and the height of the credits text itself
# Remember, ending sketch is always +550 of when the Pan stops
2021-10-11 22:27:42 +02:00
2021-10-11 22:27:42 +02:00
label .ending:
2021-10-11 22:27:42 +02:00
call get_ending
2022-11-16 06:33:16 +01:00
#I know, horrifying copy and paste
2021-10-11 22:27:42 +02:00
if _return == 4:
2022-11-16 06:33:16 +01:00
pause 0.5
show snootgame_big with dissolve: # Renpy not allowing you to grab images from the gui folder is serious bullshit
subpixel True
xalign 0.5
yalign 0.5
linear 6 zoom 1.2
pause 1.75
show d_credits_text with dissolve:
crop (0, 670, 1920, 100000)
ypos 670
pause 2
hide d_credits_text
hide snootgame_big
with dissolve
hide d_credits_text
hide snootgame_big
with dissolve
show credits_base at Pan((0, -1080),(0, 8100), 65) behind c_credits_text:
subpixel True
show d_credits_text at Pan((0, 0),(0, 11675), 65):
crop None
subpixel True
show credits_coverup at Pan((0, 0),(0, 11675), 65):
subpixel True
2021-10-11 22:27:42 +02:00
elif _return == 3:
2021-11-27 02:48:58 +01:00
play music "audio/OST/Dino Destiny Reader.ogg"
2022-11-16 06:33:16 +01:00
pause 0.5
show c_credits_text:
crop (0, 0, 1920, 670)
pause 1.1
show c_credits_text:
crop None
pause 2.75
show credits_base at Pan((0, -1080),(0, 8100), 65) behind c_credits_text:
subpixel True
show c_credits_text at Pan((0, 0),(0, 11675), 65):
crop None
subpixel True
2021-10-11 22:27:42 +02:00
else:
2021-11-27 02:48:58 +01:00
play music "audio/OST/Dino Destiny Reader.ogg"
2022-11-16 06:33:16 +01:00
pause 0.5
show b_credits_text:
crop (0, 0, 1920, 670)
pause 1.1
show b_credits_text:
crop None
pause 2.75
show credits_base at Pan((0, -1080),(0, 8100), 65) behind c_credits_text:
subpixel True
show b_credits_text at Pan((0, 0),(0, 11675), 65):
crop None
subpixel True
2021-10-11 22:27:42 +02:00
pause
stop music fadeout 5
scene black with Dissolve(3)
pause 2
2021-06-18 04:01:49 +02:00
if tradwife:
2022-11-16 06:33:16 +01:00
scene c10 with Dissolve(1.5)
pause 20
scene black with Dissolve(2)
pause 1
elif anonscore >= 4 and fangscore >= 4:
2022-11-16 06:33:16 +01:00
scene golden ending with Dissolve(1.5)
pause 20
scene black with Dissolve(2)
pause 1
2021-07-04 08:06:59 +02:00
return