From 085c8cfd96d1ea72d3b4aede73472d0d79ed575a Mon Sep 17 00:00:00 2001 From: Robert Cohen Date: Fri, 14 Jun 2024 23:01:35 -0400 Subject: [PATCH] feat: modularize endings --- game/bad_ending.rpy | 10 +++++++ game/good_ending.rpy | 55 ++++++++++++++++++++++++++++++++++++ game/script.rpy | 67 -------------------------------------------- 3 files changed, 65 insertions(+), 67 deletions(-) create mode 100644 game/bad_ending.rpy create mode 100644 game/good_ending.rpy diff --git a/game/bad_ending.rpy b/game/bad_ending.rpy new file mode 100644 index 0000000..c743226 --- /dev/null +++ b/game/bad_ending.rpy @@ -0,0 +1,10 @@ +label bad_ending: + if affection < 0: + show classmate sad + + scene black + with dissolve + + "{b}Bad Ending{/b}." + + return diff --git a/game/good_ending.rpy b/game/good_ending.rpy new file mode 100644 index 0000000..c4e8983 --- /dev/null +++ b/game/good_ending.rpy @@ -0,0 +1,55 @@ +label good_ending: + if affection > 0: + show teacher happy at scale(0.6), center + + show teacher sadder at scale(0.6), right + + teacher "I don’t know how to say this, but unfortunately, one of our classmates took her own life last night." + player "{i}(thinking){/i} No, it can’t be her. Please don’t be her." + teacher "For the privacy of the individual, we’re currently not able to say who it was. But please be respectful for the time being." + + show classmate smile at scale(0.6), left + + classmate "I’m sorry I’m late. I had an appointment with the counselor this morning." + player "{i}(thinking){/i} Thank goodness she’s okay." + + #put counselor/therapist's office background below + scene bg uni + + "You and Alex visit the counselor together, talking openly about Alex’s struggles. The counselor provides resources and support." + + show teacher happy at scale(0.6), right + + teacher "It’s great to see friends supporting each other. Alex, we’re here for you. Let’s work together to help you through this." + + show classmate smile at scale(0.6), left + + classmate "Thank you. I feel like I have a bit more hope now." + + scene bg lecturehall + with dissolve + + "In the following days, you and Alex continue to support each other. Alex starts to feel more positive and engaged in class." + + show classmate smile + + classmate "{i}(smiling){/i} Thanks for everything. I really appreciate you being there for me." + player "Anytime, Alex. We’re in this together." + + scene bg uni + with dissolve + + "The school organizes a mental health awareness event. You and Alex participate, sharing your story to help others." + + show classmate smile + + player "It’s important to reach out and support each other. We can all make a difference." + + classmate "I’m living proof that talking to someone and getting help can change everything. Never again will I be afraid to speak up." + + scene black + with dissolve + + "{b}Good Ending{/b}." + + return \ No newline at end of file diff --git a/game/script.rpy b/game/script.rpy index 99ec903..18d4011 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -115,70 +115,3 @@ label act_1: jump good_ending else: jump bad_ending - -label good_ending: - if affection > 0: - show teacher happy at scale(0.6), center - - show teacher sadder at scale(0.6), right - - teacher "I don’t know how to say this, but unfortunately, one of our classmates took her own life last night." - player "{i}(thinking){/i} No, it can’t be her. Please don’t be her." - teacher "For the privacy of the individual, we’re currently not able to say who it was. But please be respectful for the time being." - - show classmate smile at scale(0.6), left - - classmate "I’m sorry I’m late. I had an appointment with the counselor this morning." - player "{i}(thinking){/i} Thank goodness she’s okay." - - #put counselor/therapist's office background below - scene bg uni - - "You and Alex visit the counselor together, talking openly about Alex’s struggles. The counselor provides resources and support." - - show teacher happy at scale(0.6), right - - teacher "It’s great to see friends supporting each other. Alex, we’re here for you. Let’s work together to help you through this." - - show classmate smile at scale(0.6), left - - classmate "Thank you. I feel like I have a bit more hope now." - - scene bg lecturehall - with dissolve - - "In the following days, you and Alex continue to support each other. Alex starts to feel more positive and engaged in class." - - show classmate smile at scale(0.6), left - - classmate "{i}(smiling){/i} Thanks for everything. I really appreciate you being there for me." - player "Anytime, Alex. We’re in this together." - - scene bg uni - with dissolve - - "The school organizes a mental health awareness event. You and Alex participate, sharing your story to help others." - - show classmate smile at scale(0.6), left - - player "It’s important to reach out and support each other. We can all make a difference." - - classmate "I’m living proof that talking to someone and getting help can change everything. Never again will I be afraid to speak up." - - scene black - with dissolve - - "{b}Good Ending{/b}." - - return - -label bad_ending: - if affection < 0: - show classmate sad - - scene black - with dissolve - - "{b}Bad Ending{/b}." - - return