i don't understand what i need to do in the ?? screens ?? section. please, help if you can.
Code: Select all
# The script of the game goes in this file.
image blank = "blank.jpg"
image mauve = "mauveresize.png"
image mauvepjs = "mauveresizepjs.png"
image brick = "brickresize.png"
image brickhome = "brickhome.jpg"
image brickfrown = "brickresizefrown.png"
image inventory = "inventory.jpg"
# Declare characters used by this game. The color argument colorizes the
# name of the character.
define m = Character("mauve")
define b = Character("brick")
define fastdissolve = Dissolve(.2)
screen inventory_screen():
vbox:
align (0.9, 0.0)
text "Inventory:"
for item in backpack:
text ("[item]")
# The game starts here.
label start:
$backpack = set()
show inventoryscreen("inventory")
# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
scene blank
# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
# These display lines of dialogue.
"i'm tired of feeling sad all the time."
"i wish i could be a more likeable person."
"i don't want to put on a fake smile just to make those around me more comfortable."
"but i'm tired of bringing down the people i care about."
"i can't help but be like this."
play music "Harlequin.mp3"
show mauvepjs at right
m "i have nothing to do today, but i have to get out of bed whether i like it or not."
menu:
"get out of bed":
jump getoutofbed
label getoutofbed:
m "should i even bother getting dressed?"
menu:
"get dressed":
$ dressed = True
jump continue1
"don't get dressed":
$ dressed = False
jump continue1
label continue1:
if dressed == True:
"mauve changed out of her pjs."
play sound "CLOTHES.ogg"
hide mauvepjs
show mauve at right
m "i'm not sure if i'm hungry or not. should i eat something?"
menu:
"skip breakfast":
jump skipbreakfast
"eat breakfast":
jump eatbreakfast
label skipbreakfast:
m "i'll grab something now and eat it later."
"mauve picked up a banana."
jump skippbreakfast
label eatbreakfast:
m "i'll just have something quick."
menu:
"eat handful of dry cereal":
$ crunch = True
jump finishbreakfast
"eat protein bar":
$ crunch = True
jump finishbreakfast
label finishbreakfast:
if crunch == True:
play sound "CRUNCH.ogg"
label skippbreakfast:
m "i should go out today. i haven't spoken to or seen my friends in weeks."
m "who should i go visit?"
menu:
"brick":
$ brickhouse = True
jump brickhome
"cobalt":
$ cobhouse = True
jump cobhome
"fern":
$ fernhouse = True
jump fernhome
"mustard":
$ mushouse = True
jump mushome
label brickhome:
if brickhouse == True:
scene brickhome
show brick at left
if dressed == True:
show mauve at right
if dressed == False:
show mauvepjs at right
play music "JAUNTY.mp3"
with fastdissolve
b "hey, mauve! long time, no see! how have you been?"
m "hey, brick. i've been ... busy. how about you?"
b "i was just about to head to the gym. you wanna come?"
m "i'll ... pass, but thanks anyway."
hide brick
show brickfrown at left
with fastdissolve
b "oh, alright."
m "sorry."
hide brickfrown
show brick at left
with fastdissolve
b "no need to apologize!"
b "do you think you could do me a favor?"
m "i guess."
b "i borrowed headphones from fern about a week ago but i haven't had time to return them. do you think you could return them for me?"
m "sure."
play sound "CLOTHES.ogg"
"mauve received the headphones."
b "thanks so much! i really appreciate it!"
m "no problem ..."
# This ends the game.
return