mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Bonus Chapter 10 Unlock Requirement
This commit is contained in:
parent
a8238b97aa
commit
e473ddc1db
12 changed files with 81 additions and 38 deletions
|
@ -437,11 +437,17 @@ screen bonus_chapter_button(f="gui/button/menubuttons/template_idle.png"):
|
|||
action ShowMenu("ex_ch_menu")
|
||||
activate_sound "audio/ui/uiClick.wav"
|
||||
fixed:
|
||||
if persistent.old_endings != persistent.endings:
|
||||
if (persistent.old_endings != persistent.endings) \
|
||||
or (persistent.bonus_chapters != persistent.old_bonus_chapters and (persistent.bonus_chapters == 0b111111111)):
|
||||
add "bonus_flash" xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||
$ persistent.old_endings = persistent.endings
|
||||
#$ persistent.old_bonus_chapters = persistent.bonus_chapters
|
||||
else:
|
||||
add f xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||
|
||||
if (persistent.old_bonus_chapters != persistent.bonus_chapters): #just in case
|
||||
$ persistent.old_bonus_chapters = persistent.bonus_chapters
|
||||
|
||||
text "Bonus Chapters" xalign 0.5 yalign 0.5 xanchor 0.5
|
||||
|
||||
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
|
||||
|
@ -472,7 +478,9 @@ screen main_menu():
|
|||
frame:
|
||||
pass
|
||||
|
||||
if persistent.old_endings != persistent.endings:
|
||||
|
||||
if (persistent.old_endings != persistent.endings) \
|
||||
or (persistent.bonus_chapters != persistent.old_bonus_chapters and (persistent.bonus_chapters == 0b111111111)):
|
||||
fixed:
|
||||
xalign 0.125
|
||||
yalign 0.5
|
||||
|
@ -484,11 +492,14 @@ screen main_menu():
|
|||
add Solid(gui.accent_color) xysize ( int(1920/2)-20, int(1080/4)-12 ):
|
||||
xalign 0.5
|
||||
yalign 0.5
|
||||
if persistent.endings == 0b1111:
|
||||
text "You have unlocked all bonus chapters!" style "main_menu_text" yalign 0.5
|
||||
if persistent.endings == 0b1111 and (persistent.bonus_chapters == 0b111111111):
|
||||
text "You have unlocked the final bonus chapter!" style "main_menu_text" yalign 0.5
|
||||
elif persistent.endings == 0b1111:
|
||||
text "You have finished all endings! Complete all bonus chapters to receive the final chapter!" style "main_menu_text" yalign 0.5
|
||||
else:
|
||||
text "You have unlocked new bonus chapters, complete unseen endings to see more!" style "main_menu_text" yalign 0.5
|
||||
|
||||
|
||||
## The use statement includes another screen inside this one. The actual
|
||||
## contents of the main menu are in the navigation screen.
|
||||
vbox:
|
||||
|
|
|
@ -51,6 +51,14 @@ init python:
|
|||
if persistent.autoup == None:
|
||||
persistent.autoup = False
|
||||
|
||||
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
|
||||
|
||||
def randomize_choices(choices):
|
||||
# fine for size of 2
|
||||
if (renpy.random.randint(0, 1)):
|
||||
|
|
|
@ -612,4 +612,6 @@ label chapter_x1:
|
|||
scene black with Dissolve(2)
|
||||
pause 1.5
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 0)
|
||||
|
||||
return
|
||||
|
|
|
@ -405,4 +405,6 @@ label chapter_x2:
|
|||
scene black with Dissolve(1.5)
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 1)
|
||||
|
||||
return
|
|
@ -304,4 +304,7 @@ label chapter_x3:
|
|||
|
||||
scene black with Dissolve(2)
|
||||
pause 1.5
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 2)
|
||||
|
||||
return
|
||||
|
|
|
@ -245,4 +245,6 @@ label chapter_x4:
|
|||
window auto
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 3)
|
||||
|
||||
return
|
|
@ -340,4 +340,6 @@ label chapter_x5:
|
|||
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 4)
|
||||
|
||||
return
|
|
@ -1417,4 +1417,6 @@ label chapter_x6:
|
|||
window auto
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 5)
|
||||
|
||||
return
|
||||
|
|
|
@ -2092,4 +2092,6 @@ label chapter_x7:
|
|||
scene black with Dissolve(2)
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 6)
|
||||
|
||||
return
|
|
@ -538,4 +538,7 @@ label chapter_x8:
|
|||
window hide
|
||||
window auto
|
||||
pause 2
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 7)
|
||||
|
||||
return
|
||||
|
|
|
@ -1084,4 +1084,7 @@ label chapter_x9:
|
|||
window auto
|
||||
pause 2
|
||||
$ renpy.music.set_volume(1.0, 0, 'music')
|
||||
|
||||
$ persistent.bonus_chapters |= (0b1 << 8)
|
||||
|
||||
return
|
||||
|
|
|
@ -59,6 +59,9 @@ screen ex_ch_menu():
|
|||
for i in range(8, 8-w, -1):
|
||||
ex_chapters_menu.remove(ex_chapters[i])
|
||||
ex_chapters_menu.pop()
|
||||
else:
|
||||
if not (persistent.bonus_chapters == 0b111111111):
|
||||
ex_chapters_menu.pop()
|
||||
|
||||
tag menu
|
||||
style_prefix "main_menu"
|
||||
|
|
Loading…
Reference in a new issue