# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define e = Character("")
define superslowdissolve = Dissolve(2.0)
define slowdissolve = Dissolve(1.0)
define dissolve = Dissolve(.5)
define fade = Fade(0.5, 0.0, 0.5)
define flash = Fade(0.1, 0.0, 0.5, color="#fff")
define goodpoints = 0
define badpoints = 0





# The game starts here.

label start:

    # 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 dark background
    with slowdissolve
    show hello
    with slowdissolve
    scene dark background
    with slowdissolve
    show are you there
    with slowdissolve
    scene dark background
    with slowdissolve
    show dont go
    with slowdissolve
    scene dark background
    with slowdissolve
    show please
    with slowdissolve
    scene dark background
    with slowdissolve
    show girl
    with superslowdissolve

    # 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.

    play music "Game Music.mp3" loop
    play music "Rainfall.ogg" loop


    scene dark background
    with fade
    scene house

    # These display lines of dialogue.

    e "Right.."

    e "This place seems.. strangely familiar, yet I can't seem to know exactly.. why."
    e "Where am I?"
    e "Or more importantly.."



    scene hands
    with slowdissolve

    e "Who am I?"

    play music "game music.mp3" fadeout 1

    scene house
    with superslowdissolve

    e "There's something about this house, maybe there are some answers laying here, but where do I start?"

    label choice_outside:
        menu:
            "Left side of house":
                jump choice1_left



            "Enter House":
                jump choice3_house
                $ goodpoints += 1



    label choice1_left:
        $ menu_flag = False
    scene side of house
    with slowdissolve
    e "So many tools.. I suppose the owner enjoys gardening"

    menu:
        e "Should I inspect them further?"

        "Tools hanging on wall":
            jump choice2_tools
            #label choice1_house
        "Shovel":
            jump choice2_shovel
        "Plants":
            jump choice2_plants
        "Back":
            jump choice_outside


    label choice3_house:
        $ menu_flag = True
        scene entrance
        with slowdissolve
        jump entrance




    label choice2_tools:
        scene tools
        with slowdissolve
        $ badpoints += 1
        e "They're just tools.. Yet looking at them makes me strangely uncomfortable.."
        jump choice1_left

    label choice2_shovel:
        scene shovel
        with dissolve
        #$ menu_flag = False
        $ badpoints += 1

        e "It's got to be for gardening.. There's something unusual about it"
        jump choice1_left

    label choice2_plants:
        #$ menu_flag = False
        scene plants
        with slowdissolve
        e "I've always connected more to nature, these are beautiful"
        $ goodpoints += 1
        jump choice1_left

        #The game continues here


        label choice3_done:


    scene entrance
    with slowdissolve
    label entrance:
        e "The place seems well taken care of, seems like noone is home though.."
        e "There's an open book, I hope they don't mind.."

        menu:
            e "Should I open the book?"
            "Read":
                jump book
                scene book uh
                with slowdissolve

            "Leave it":
                jump entrance_after_intro


    label book:
        scene book uh oh
        with slowdissolve
        e "Seems like it's been a while since anyone was here.."
        e "None of these names seem familiar.."


    label entrance_after_intro:
        e "Huh.. Where to go next?"

    menu:
        e "Where do you wish to go?"

        "Back":
            jump entrance_after_intro
        "Living Room":
            jump Living_Room
        "Bathroom":
            jump Bathroom

    label Bathroom:
        scene iz bathroom
        with slowdissolve
        e "How modern.."

        menu:
            e "Look in the mirror?"
            "Look":
                jump exit

            "Leave":
                jump entrance_after_intro

    label Living_Room:
        scene livingroom
        with slowdissolve
        e "How cozy! I'm sure they spend a lot of time here."
        e "I know I sure would.."

        menu:
            e "There are some photos on the wall, maybe they can tell me something"

            "Take a Look":
                jump pictures

            "Back":
                jump entrance_after_intro

        $ goodpoints += 1
        jump entrance_after_intro

    label pictures:
        if goodpoints > badpoints:
            scene pictures
            with slowdissolve
            e "These send shivers down my spine.. They're way too familiar.."
        else:
            scene photos
            with slowdissolve
            e "They seem like a nice family.. I wonder what happened."

        jump entrance_after_intro

    #label photos:
        #scene photos
        #e "Interesting.. I wonder where they are now.."
        #jump entrance_after_intro

    label exit:
        if goodpoints > badpoints:
            scene mirror good
            with slowdissolve
            e "That'd be me."

        else:
            scene mirror 3
            with slowdissolve
            e "..."

            jump end

    label end:
        if goodpoints > badpoints:
            scene dark background
            show end good
            with slowdissolve
            e "Thanks for playing!"
        else:
            scene dark background
            show end bad
            with slowdissolve
            e "Thanks for playing!"

    # This ends the game.


    return
