Beispiel #1
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)
Beispiel #2
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)
Beispiel #3
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)
def i_understand():
    # Monkey
    dialogue('  Great Commander!  I am glad we are on the same       ', 250,
             600, 15)
    dialogue('  page.  Now let\'s proceed with the mission!          ', 250,
             625, 15)
    dialogue('                                                       ', 250,
             650, 15)
    dialogue('                                                       ', 250,
             675, 15)
    dialogue('                                                       ', 250,
             700, 15)
    dialogue('                                                       ', 250,
             725, 15)
    pygame.time.delay(3000)
    # Run function to enter asteroid field without weapons
    instructions(False)
Beispiel #5
0
def say_yes_1():
    global back_counter
    back_counter = 2
    # Commander
    update_and_flip()
    dialogue(' You are one sharp monkey. That is why we selected ', 510, 100,
             15)
    dialogue(' you for this mission. Are you ready to enter the   ', 510, 150,
             15)
    dialogue(' asteroid field?                                    ', 510, 200,
             15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) No ', 243, 600, 15)
        dialogue(' (2) Yes ', 246, 625, 15)
        dialogue('                   ', 286, 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()
                    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)
                    good_luck()
                    pygame.time.delay(3000)
                    # Run function to enter asteroid field without weapons.
                    instructions(False)
def strong_feelings():
    # Monkey
    dialogue('   Commander I told you from the beginning.....         ', 250,
             600, 15)
    dialogue('  I am a Space Monkey.  I\'ve got no time for          ', 250,
             625, 15)
    dialogue('  relationships.  You\'re gonna have to make sure      ', 250,
             650, 15)
    dialogue('  those feelings don\'t get in the way of the mission. ', 250,
             675, 15)
    dialogue('                                                       ', 250,
             700, 15)
    dialogue('                                                       ', 250,
             725, 15)
    pygame.time.delay(3000)

    while True:
        # Commander
        update_and_flip()
        dialogue('   Space Monkey...                                      ',
                 520, 100, 15)
        dialogue('   You\'re confidence and aloofness only                ',
                 520, 125, 15)
        dialogue('  make me want  you all the more....                    ',
                 530, 150, 15)
        dialogue('  Why don\'t you go ahead and use your weapons....      ',
                 530, 175, 15)
        dialogue('  And don\'t worry about me.  The mission is more       ',
                 530, 200, 15)
        dialogue('  important than my heart.   (enter)                    ',
                 530, 225, 15)
        pygame.time.delay(1500)

        pygame.event.clear()
        event = pygame.event.wait()
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                pygame.time.delay(3000)
                # Run function to enter asteroid field with weapons
                instructions(True)
Beispiel #7
0
def talk_about_it():
    # Have to start new loop to get rid of underline.
    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Tell him it was a one time thing.                  ', 246, 600, 15)
        dialogue(' (2) Tell him he better not try it again.               ', 246, 625, 15)
        dialogue(' (3) Forget it...                                       ', 246, 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) Tell him it was a one time thing.                  ', 246, 600, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    one_time_thing()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) Tell him he better not try it again.               ', 246, 625, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    dont_try_again()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Forget it...                                       ', 246, 650, 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)
Beispiel #8
0
def insult():
    # Have to start new loop to get rid of underline.
    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) You are a piece of trash!                          ', 246, 600, 15)
        dialogue(' (2) You are a war profiteer!                           ', 246, 625, 15)
        dialogue(' (3) Forget it...                                       ', 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) You are a piece of trash!                          ', 246, 600, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    trash_response()

            if event.key == pygame.K_2:
                while True:
                    update_and_flip()
                    dialogue(' (2) You are a war profiteer!                           ', 246, 625, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    war_profiteer()

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(' (3) Forget it...                                       ', 246, 650, 15, underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    good_luck()
                    pygame.time.delay(3000)
                    # Run function to enter asteroid field without weapon.
                    instructions(False)
Beispiel #9
0
def nonsense():
    # Commander
    update_and_flip()
    dialogue(' How dare you address a superior in that manner?!       ', 510,
             100, 15)
    dialogue(' You are here to follow orders, not to give opinions!   ', 510,
             150, 15)
    dialogue('                                                        ', 510,
             200, 15)

    while True:
        # Monkey
        update_and_flip()
        dialogue(' (1) Explain logically                                  ',
                 246, 600, 15)
        dialogue(' (2) Insult                                             ',
                 246, 625, 15)
        dialogue(' (3) Forget it...                                       ',
                 246, 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) Explain logically                                  ',
                        246,
                        600,
                        15,
                        underline=True)
                    pygame.display.flip()
                    pygame.time.delay(1500)
                    explain_logically()

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

            if event.key == pygame.K_3:
                while True:
                    update_and_flip()
                    dialogue(
                        ' (3) Forget it...                                       ',
                        246,
                        650,
                        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)