forked from Cavemanon/SnootGame
Make set_scores function more readable
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user