mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Make set_scores function more readable
This commit is contained in:
parent
a31fa50d8a
commit
719f08ba24
1 changed files with 12 additions and 5 deletions
|
@ -91,6 +91,9 @@ label reset_chapter_list:
|
|||
label chapter_select:
|
||||
$ quick_menu = False
|
||||
|
||||
$ anon_points = 0
|
||||
$ fang_points = 0
|
||||
|
||||
stop sound
|
||||
stop music fadeout 2
|
||||
scene black with dissolve
|
||||
|
@ -99,17 +102,21 @@ label chapter_select:
|
|||
"Initialize scores:"
|
||||
|
||||
"Ending 1":
|
||||
$ set_scores(0, 0)
|
||||
pass # Since points are already initialized at 0
|
||||
"Ending 2":
|
||||
$ set_scores(0, 4)
|
||||
# anon 0
|
||||
$ fang_points = 4
|
||||
"Ending 3":
|
||||
$ set_scores(4, 0)
|
||||
$ anon_points = 4
|
||||
# fang 0
|
||||
"Ending 4":
|
||||
$ set_scores(4, 4)
|
||||
$ anon_points = 4
|
||||
$ fang_points = 4
|
||||
"Exit to main menu":
|
||||
scene black with dissolve
|
||||
return
|
||||
|
||||
$ set_scores(anon_points, fang_points)
|
||||
$ is_end_reached = False # Reset this for when the tool is used more than once
|
||||
|
||||
window hide
|
||||
|
|
Loading…
Reference in a new issue