def perceive_time():
    # Commander
    update_and_flip()
    dialogue(' Only in the same way that you may perceive        ', 520, 100,
             15)
    dialogue(' time in a dream. And what really is existence?    ', 520, 150,
             15)
    dialogue(' Other than time in a dream.                       ', 520, 200,
             15)
    dialogue('                                                   ', 520, 250,
             15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Are you saying there is no meaning?      ', 243, 600,
                 15)
        dialogue(' (2) Then what is death?                      ', 243, 625,
                 15)
        dialogue('(3) Well let\'s get to it!                   ', 243, 650, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) Are you saying there is no meaning?      ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_5.no_meaning()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Then what is death?                      ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_5.what_is_death()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Well let\'s get to it!                   ',
                             248,
                             650,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    dream.dream()
def afraid_to_die():
    # Commander
    update_and_flip()
    dialogue(' Why would I be afraid of the most natural thing   ', 520, 100,
             15)
    dialogue(' this world has to offer?                          ', 520, 150,
             15)
    dialogue('                                                   ', 520, 200,
             15)
    dialogue('                                                   ', 520, 250,
             15)

    pygame.time.delay(5000)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' I am ready.                                  ', 243, 600,
                 15)
        dialogue(' Let\'s get to it!                            ', 243, 625,
                 15)
        dialogue('                                              ', 243, 650,
                 15)

        pygame.time.delay(1500)
        good_luck()
        dream.dream()
def not_miss_you():
    while True:
        # Monkey
        update_and_flip()
        dialogue('Commander I will not miss you. I have         ', 243, 600,
                 15)
        dialogue('tolerated you as a manor of professionalism   ', 243, 625,
                 15)
        dialogue('and I feel no emotion at the thought of       ', 243, 650,
                 15)
        dialogue('never seeing your face again.    (enter)      ', 243, 675,
                 15)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:

                while True:
                    # Commander
                    update_and_flip()
                    dialogue(
                        '      Uh.. Great good luck out there.                   ',
                        490, 100, 15)
                    dialogue(
                        '                                                        ',
                        510, 150, 15)
                    dialogue(
                        '                                                        ',
                        510, 200, 15)
                    dialogue(
                        '                                                        ',
                        510, 250, 15)

                    pygame.time.delay(3000)
                    dream.dream()
def have_a_chat():
    # Commander
    update_and_flip()
    dialogue(' What\'s on your mind?                  ', 490, 100, 15)
    dialogue('                                        ', 490, 150, 15)
    dialogue('                                        ', 490, 200, 15)
    dialogue('                                        ', 490, 250, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) What should I expect during hibernation? ', 243, 600,
                 15)
        dialogue(' (2) Get personal                             ', 243, 625,
                 15)
        dialogue(' (3) Nothing.. I am ready...                  ', 243, 650,
                 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) What should I expect during hibernation? ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.hybernation_explanation()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Get personal                             ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.get_personal()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Nothing.. I am ready...                  ',
                             248,
                             650,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    dream.dream()
def hybernation_explanation():
    # Commander
    update_and_flip()
    dialogue(' Your body will be in suspension.       ', 490, 100, 15)
    dialogue(' However, your mind will be active.     ', 490, 150, 15)
    dialogue(' Essentially you will be having a       ', 490, 200, 15)
    dialogue(' 750 year long dream...                 ', 490, 250, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Will I perceive time?                    ', 243, 600,
                 15)
        dialogue(' (2) Are there any long-term effects?         ', 243, 625,
                 15)
        dialogue('(3) Well let\'s get to it!                   ', 243, 650, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) Will I perceive time?                    ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_4.perceive_time()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Are there any long-term effects?         ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_4.long_term_effects()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Well let\'s get to it!                   ',
                             248,
                             650,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    dream.dream()
def lie():
    # Commander
    update_and_flip()
    dialogue(' Eh... None at all...                              ', 520, 100, 15)
    dialogue(' It is basically a cold.                           ', 520, 150, 15)
    dialogue(' Now get to it!                                    ', 520, 200, 15)
    dialogue('                                                   ', 520, 250, 15)

    pygame.time.delay(6000)
    dream.dream()
def truth():
    # Commander
    update_and_flip()
    dialogue(' There is a chance you could experience an         ', 520, 100, 15)
    dialogue(' illness when you wake up. But it is not probable  ', 520, 150, 15)
    dialogue(' and you are healthy so you should be fine.        ', 520, 200, 15)
    dialogue(' Now get to it!                                    ', 520, 250, 15)

    pygame.time.delay(6000)
    dream.dream()
def professional():
    # Commander
    update_and_flip()
    dialogue(' Space monkey you are an admirable soldier.        ', 520, 100, 15)
    dialogue(' I respect you in a professional way.              ', 520, 150, 15)
    dialogue(' Now get to it!                                    ', 520, 200, 15)
    dialogue('                                                   ', 520, 250, 15)

    pygame.time.delay(6000)
    dream.dream()
def personal():
    # Commander
    update_and_flip()
    dialogue(' Space monkey I will miss you dearly.              ', 520, 100, 15)
    dialogue(' I... eh.. err.                                    ', 520, 150, 15)
    dialogue(' Now get to it!                                    ', 520, 200, 15)
    dialogue('                                                   ', 520, 250, 15)

    pygame.time.delay(6000)
    dream.dream()
Esempio n. 10
0
def shooting_star():
    x = 0
    y = 500

    while x < 700 and y < 700:
        screen.blit(background_image, [0, 0])
        pygame.display.flip()
        x += .75
        y -= .75
        screen.blit(star, (x, y))
        update_and_flip()
        screen.fill(black)
Esempio n. 11
0
def monkey_convo():
    while True:
        update_and_flip()
        screen.blit(comms_photo, [300, 200])

        dialogue(' Loud and clear Commander! ', 420, 500, 20)
        dialogue('          (enter)          ', 420, 525, 12)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                screen.fill(black)
                break
Esempio n. 12
0
def commander_convo():
    while True:
        update_and_flip()
        screen.blit(commander, [290, 200])
        dialogue(' Space Monkey! Are you there?  Do you read me?... ', 420,
                 500, 20)
        dialogue('                    (Enter)                       ', 420,
                 525, 12)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                screen.fill(black)
                break
def pleasure():
    while True:
        # Monkey
        update_and_flip()
        dialogue(' Sir, it has been an absolute pleasure           ', 235, 600,
                 15)
        dialogue(' to serve under you. I wish you all              ', 235, 625,
                 15)
        dialogue(' the best.                                       ', 235, 650,
                 15)

        pygame.time.delay(3000)
        good_luck()
        dream.dream()
Esempio n. 14
0
def say_no():
    # Commander
    update_and_flip()
    dialogue(' Well...                                ', 490, 100, 15)
    dialogue(' What is it....                         ', 490, 150, 15)
    dialogue('                                        ', 490, 200, 15)
    dialogue('                                        ', 490, 250, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) I was just hoping we could chat. ', 243, 600, 15)
        dialogue(' (2) Nothing.. I am ready...          ', 243, 625, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) I was just hoping we could chat. ', 248, 600, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_2.have_a_chat()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Nothing.. I am ready...          ', 248, 625, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    dream.dream()
Esempio n. 15
0
    def flashing_monkey_moon():
        x = -200
        y = 0
        while x > -400:
            update_and_flip()
            screen.fill(black)
            screen.blit(brown_monkey, (-300, 0))
            pygame.time.delay(1500)
            update_and_flip()
            screen.fill(black)
            screen.blit(moon, (x, y))
            x -= 25
            y -= 25

        dream_one()
Esempio n. 16
0
def main():
    x = -200
    y = 0
    while x > -400:
        update_and_flip()
        screen.fill(black)
        screen.blit(brown_monkey, (-300, 0))
        pygame.time.delay(1500)
        update_and_flip()
        screen.fill(black)
        screen.blit(moon, (x, y))
        x -= 25
        y -= 25

    questions()
Esempio n. 17
0
    def dream_intro():
        while True:
            screen.fill(black)
            update_and_flip()
            dialogue('      T h e  D r e a m               ', 440, 100, 20)
            dialogue(' There will be two windows.          ', 440, 200, 15)
            dialogue(' Make sure they are side by side.    ', 440, 250, 15)
            dialogue(' Use left and right to move.         ', 440, 300, 15)
            dialogue(' Answer the questions.               ', 440, 350, 15)
            dialogue('     (enter)                         ', 440, 500, 15)

            event = pygame.event.wait()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_RETURN:
                    flashing_monkey_moon()
Esempio n. 18
0
def rocket_launch():
    x = 300
    y = 500
    exhaust_x = 355
    exhaust_y = 745

    while y > 0:
        screen.blit(background_image, [0, 0])
        x += 0
        y -= .5
        exhaust_x += 0
        exhaust_y -= .5
        screen.blit(rocket, (x, y))
        pygame.display.flip()
        update_and_flip()
        screen.fill(black)
Esempio n. 19
0
def explain_logically():
    # Have to start new loop to get rid of underline.
    while True:
        # Monkey
        update_and_flip()
        dialogue(' Look sir, I understand you are my superior...         ', 246, 600, 15)
        dialogue(' But the longer it takes me to get through this        ', 246, 625, 15)
        dialogue(' asteroid field, the longer it takes me to complete    ', 246, 650, 15)
        dialogue(' my mission....                                        ', 246, 675, 15)
        dialogue('                    (enter)                            ', 246, 700, 12)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            convinced()
            if event.key == pygame.K_1:
                convinced()
Esempio n. 20
0
def say_no_1():
    global back_counter
    back_counter = 1
    # Commander
    update_and_flip()
    dialogue('The Prime Directive states that you are not allowed', 510, 100,
             15)
    dialogue('to shoot an asteroid. The resulting debris may have', 510, 150,
             15)
    dialogue('negative consequences for other civilizations.     ', 510, 200,
             15)
    dialogue(' Are you ready to enter the asteroid field?          ', 510, 250,
             15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) No  ', 243, 600, 15)
        dialogue(' (2) Yes ', 243, 625, 15)
        dialogue('                          ', 243, 650, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) No ', 248, 600, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    whats_the_problem()
                    back_counter = 2
                    say_more_choices_1()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Yes ', 242, 625, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)

                    # Commander
                    update_and_flip()
                    good_luck()
                    pygame.time.delay(3000)
                    # Run function to enter asteroid field without weapons.
                    instructions(False)
Esempio n. 21
0
def instructions(can_use_weapon):
    size = (800, 800)
    screen = pygame.display.set_mode(size)
    black = (0, 0, 0)
    pygame.init()
    while True:
        screen.fill(black)
        update_and_flip()
        dialogue(' T h e  A s t e r o i d  F i e l d                ', 500,
                 100, 20)
        dialogue(' Instructions                                     ', 635,
                 150, 20)
        dialogue(
            '  From now on there will be 2 windows. Make sure they are side by side.     ',
            425, 200, 15)
        dialogue(
            ' Use the arrow keys (up, down, left, right) to move your ship.',
            370, 250, 15)
        dialogue(
            '  Use the space bar to fire your weapon. (If you convinced the Commander...)',
            425, 300, 15)
        dialogue('   -But beware, shooting asteroids may cause debris... ',
                 425, 325, 15)
        dialogue(' Your rocket is using sophisticated technology.', 300, 375,
                 15)
        dialogue(
            ' - When you engage your warp drive (moving forward or backward) ',
            490, 400, 15)
        dialogue(' - Time stands still. ', 350, 425, 15)
        dialogue(' - This can be used to your benefit, however the  ', 475,
                 450, 15)
        dialogue(' warp drive will not recharge and once it is  ', 475, 475,
                 15)
        dialogue(' depleted you cannot move up or down.  ', 442, 500, 15)
        dialogue(' You win when you survive the asteroid field.  ', 300, 550,
                 15)
        dialogue(' You lose when your shields get to zero.       ', 300, 600,
                 15)
        dialogue('                    Good Luck!                      ', 400,
                 650, 15)
        dialogue('                    (Enter)                       ', 400,
                 675, 12)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                game(can_use_weapon)
def never_liked_you():
    while True:
        # Monkey
        update_and_flip()
        dialogue('     Commander I would just like to say that   ', 240, 600,
                 15)
        dialogue('     I have never liked you. You are a war     ', 240, 625,
                 15)
        dialogue('     pig who profits on the carnage of regime  ', 240, 650,
                 15)
        dialogue('     changes throughout this galaxy. I wish you', 240, 675,
                 15)
        dialogue('     a slow, painful death...       (enter)    ', 240, 700,
                 15)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:

                while True:
                    # Commander
                    update_and_flip()
                    dialogue(
                        '         Well I am on Earth living out my days        ',
                        500, 100, 15)
                    dialogue(
                        '                                                      ',
                        500, 125, 15)
                    dialogue(
                        '         while you are in a capusle, asleep for       ',
                        500, 150, 15)
                    dialogue(
                        '                                                      ',
                        500, 175, 15)
                    dialogue(
                        '         the next 750 years...  So good luck on       ',
                        500, 200, 15)
                    dialogue(
                        '                                                      ',
                        500, 225, 15)
                    dialogue(
                        '         your mission!                                ',
                        500, 250, 15)

                    pygame.time.delay(3000)
                    dream.dream()
Esempio n. 23
0
def ending():
    print('The end')
    while True:
        update_and_flip()
        dialogue('    T h e  E n d            ', 475, 50, 30)
        dialogue('Unfortunately, life support ', 415, 400, 15)        
        dialogue('failed during hibernation...', 413, 450, 15)
        dialogue('Thank you for playing!      ', 445, 550, 20)
        dialogue('All images taken from open source collections.', 410, 600, 10)
        dialogue('If you wish to have an image removed, please let me know.', 410, 625, 10)
        dialogue('By James Capps              ', 460, 650, 15)
        dialogue('jamesjcapps.com             ', 430, 675, 10)
        dialogue('(enter to exit)             ', 475, 750, 20)
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                pygame.display.quit()
                pygame.quit()
Esempio n. 24
0
def the_party():
    # Commander
    update_and_flip()
    dialogue('                                                            ',
             510, 100, 15)
    dialogue('   I.. eh... er..  I had a lot to drink that night...       ',
             510, 150, 15)
    dialogue('                                                            ',
             525, 200, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Keep talking about it.                             ',
                 246, 600, 15)
        dialogue(' (2) Forget it...                                       ',
                 246, 625, 15)
        dialogue('                                                        ',
                 246, 650, 15)
        dialogue('                                                        ',
                 246, 675, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(
                        ' (1) Keep talking about it.                             ',
                        246,
                        600,
                        15,
                        underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    talk_about_it()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(
                        ' (2) Forget it...                                       ',
                        246,
                        625,
                        15,
                        underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    pygame.time.delay(3000)
                    # Run function to enter asteroid field without weapons.
                    instructions(False)
Esempio n. 25
0
def bananas():
    # Commander
    update_and_flip()
    dialogue(' I.. eh... er..  Sorry about that.  There must have been ', 510,
             100, 15)
    dialogue(' an accounting error somewhere.....                     ', 510,
             150, 15)
    dialogue('                                                        ', 510,
             200, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Press him                                          ',
                 246, 600, 15)
        dialogue(' (2) Forget it...                                       ',
                 246, 625, 15)
        dialogue('                                                        ',
                 246, 650, 15)
        dialogue('                                                        ',
                 246, 675, 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(
                        ' (1) Press him                                          ',
                        246,
                        600,
                        15,
                        underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    press_him()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(
                        ' (2) Forget it...                                       ',
                        246,
                        625,
                        15,
                        underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    pygame.time.delay(3000)
                    # Run function to enter asteroid field without weapons.
                    instructions(False)
Esempio n. 26
0
def winner():
    size = (800, 800)
    screen = pygame.display.set_mode(size)
    black = (0, 0, 0)
    pygame.init()
    while True:
        screen.fill(black)
        update_and_flip()
        dialogue(' Congratulations!               ', 500, 300, 20)
        dialogue(' You have successfully navigated the asteroid field!', 420,
                 400, 15)
        dialogue('                    (Enter)                       ', 420,
                 500, 12)

        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                # Run next chapter...
                pre_dream.main()
                turtle.mainloop()
def what_is_death():
    # Commander
    update_and_flip()
    dialogue(' The greatest mystery that no one knows the answer        ', 520, 100, 15)
    dialogue(' to, but everyone will have revealed.  (enter)            ', 520, 150, 15)
    dialogue('                                                          ', 520, 200, 15)
    dialogue('                                                          ', 520, 250, 15)

    event = pygame.event.wait()
    if event.type == pygame.KEYDOWN:
        if event.key == pygame.K_RETURN:
            while True:
                # Monkey
                update_and_flip()
                dialogue(' I am ready commander.                        ', 243, 600, 15)
                dialogue(' Let\'s get to it!                             ', 243, 625, 15)
                dialogue('                                              ', 243, 650, 15)

                pygame.time.delay(1500)
                good_luck()
                dream.dream()
def something_mean():
    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) I have never liked you.                  ', 243, 600,
                 15)
        dialogue(' (2) I will not miss you...                   ', 243, 625,
                 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) I have never liked you.                  ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.never_liked_you()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) I will not miss you...                    ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.not_miss_you()
def something_nice():
    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) It has been a pleasure Commander.        ', 243, 600,
                 15)
        dialogue(' (2) I will miss you...                       ', 243, 625,
                 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) It has been a pleasure Commander.        ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.pleasure()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) I will miss you...                       ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_3.miss_you()
def get_personal():
    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Are you afraid to die?                    ', 243, 600,
                 15)
        dialogue(' (2) Will you miss me?                         ', 243, 625,
                 15)
        dialogue(' (3) Nothing.. I am ready...                   ', 243, 650,
                 15)

        # Underline selection before running next function.
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_1:
                while True:
                    update_and_flip()
                    dialogue(' (1) Are you afraid to die?                    ',
                             248,
                             600,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_4.afraid_to_die()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Will you miss me?                         ',
                             248,
                             625,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    pre_dream_choices_4.miss_me()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Nothing.. I am ready...                   ',
                             248,
                             650,
                             15,
                             underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    dream.dream()