コード例 #1
0
ファイル: act3.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def attemptRock():
  global rubbleBlownUp
  if not rubbleBlownUp:
    print("it's darker than before, but the rubble is still there")
    sleep(1)
    print("and an explosive in your hands")
    sleep(2)
    print("\nyou need something to light the dynamite with")
    sleep(2)
  else:
    print("it's darker than before, and your ears are ringing a bit")
    sleep(1)

  while True:
    print("\nlook around?\n\nyes or no")
    option = input("> ")

    if option == "yes" and not rubbleBlownUp:
      print("you look around on the ground, pushing over rocks and feeling around on the walls")
      sleep(1)
      print("you find a piece of flint\n")
      sleep(1)
      print("you grab another rock and spark the flint over the fuse", end='')
      sleep(1)
      printVerySlow(".......")
      printSlow("\nboom!")
      rubbleBlownUp = True
      p1.inventory.remove(items.Dynamite.ID)
      sleep(2)
      print("\nthe rock was blown away, leaving a path forward")
      sleep(1)
      while True:
        print("\nkeep going or go back")
        option2 = input("> ")
        
        if option2 == "keep going":
          loreRoom()
          break
        elif option2 == "go back" or option2 == "back":
          attemptRock()
          break
        inputError(option2)
      break
    elif option == "yes" and rubbleBlownUp:
      print("the rubble is already blown up, idiot")
      sleep(2)
      print("\nyou step forward into the room")
      sleep(1)
      loreRoom()
    elif option == "no":
      print("you decide against looking around the room")
      sleep(2)
      print("\nwhy not give youself a name?")
      sleep(1)
      p1.getName()
      sleep(2)
      clearScreen()
      attemptRock()
      break
    inputError(option)
コード例 #2
0
ファイル: act2.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def lookAround():
    print("you glance around frantically, your heart pounding")
    sleep(1)
    print("you survived the tumbling rocks, but the way back is blocked")
    sleep(1)
    print("you'll need to find a way back")
    sleep(1)

    while True:
        print("\nlook around or hide")
        option = input("> ")

        if option == "look around" or option == "look":
            print("you come to your senses and analyze your surroundings")
            sleep(1)
            print("\nthe tunnel is dusty, making it hard to breath")
            sleep(1)
            print(
                "there is a massive thiccet in front of you, there are dead rats embedded within"
            )
            sleep(1)

            while True:
                print("\ninspect thicket or keep looking")
                option2 = input("> ")

                if option2 == "inspect thicket" or option2 == "thicket" or option2 == "inspect":
                    inspectThicket()
                    break
                elif option2 == "keep looking":
                    print(
                        "this time you notice a faint light coming through the brush "
                    )
                    sleep(1)
                    print(
                        "the way back isn't an impossible route, but you'll definitely need something to move the rockfall\n"
                    )
                    sleep(3)
                    print("you move on to the thicket...")
                    inspectThicket()
                    break
                inputError(option2)
            break

        elif option == "hide":
            sleep(3)
            print("you ball up against the wall of the cave")
            sleep(1)
            print("gripping your legs tight to your body")
            sleep(3)
            clearScreen()
            printVerySlow("you're pathetic\n")
            sleep(6)
            printSlow("\nnow get moving")
            sleep(2)
            clearScreen()
            sleep(2)
            lookAround()
            break
        inputError(option)
コード例 #3
0
ファイル: act2.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def start():
    clearScreen()
    printSlow("Welcome to Act 2 of The Caves of Antiquorum\n")
    printSlow("Press ENTER to continue...")
    input()
    clearScreen()
    sleep(3)
    lookAround()
コード例 #4
0
ファイル: act3.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def start():
  clearScreen()
  printSlow("======ACT=3======\n")
  sleep(1)
  printSlow("\n.....")
  input()
  clearScreen()
  sleep(3)
  attemptRock()
コード例 #5
0
ファイル: main.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def start():
    clearScreen()
    print(
        "Welcome to The Caves of Antiquorum\nby Joseph Alberici and Luke Simone\n"
    )
    print("Type \"quit\" and press ENTER to exit the game at any time.")
    input("Press ENTER to begin the game...")
    clearScreen()
    sleep(2)
    beginStory()
コード例 #6
0
ファイル: act2.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def inspectThicket():
    print("it's sharp through there\n")
    sleep(1)
    print("do i really need to crawl through...")
    sleep(1)

    while True:
        print("\nbe brave or cower")
        option = input("> ")

        if option == "be brave" or option == "brave":
            sleep(1)
            print("it hurts")
            sleep(1)
            print("\nthe light gets stronger... it's blinding")
            sleep(2)
            print(
                "you emerge into a tight tunnel, the walls practically suffocating you"
            )
            sleep(1)
            print("you see only one way forward")
            sleep(1)

            while True:
                print("\nkeep going or go back")
                option2 = input("> ")

                if option2 == "keep going":
                    pastThicket()
                    break
                elif option2 == "go back" or option2 == "back":
                    differentArea()
                    break
                inputError(option2)
            break
        elif option == "cower":
            sleep(1)
            print("\nthe light beyond the thicket screams")
            sleep(1)
            print("you close your eyes but its still blinding\n")
            sleep(1)
            printSlow("you can't think\n")
            sleep(3)
            clearScreen()
            lookAround()
            break
        inputError(option)
コード例 #7
0
ファイル: act2.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def jump():
    sleep(3)
    print("you prepare youself, and get ready to jump\n")
    sleep(2)
    print("you throw youself forward", end='')
    printSlow("...")
    sleep(1)
    print("\nbut your foot gets caught on a rock\n")
    sleep(3)
    print("you're dangling out over the ledge, staring down at the void")
    sleep(5)
    clearScreen()
    printSlow("the blackness is calling out to you, urging you forward\n")
    sleep(2)
    print("you feel a deep rumble throughout the cavern\n")
    sleep(6)
    print("you scramble to get your grip again")
    sleep(1)
    print(
        "hoisting youself back onto the ledge you just tried to throw yourself off of\n"
    )
    sleep(4)

    print("you back up\n")
    sleep(1)
    while True:
        print("try again or go back")
        option = input("> ")

        if option == "try" or option == "try again":
            print("you back up and breathe, preparing to go again")
            sleep(3)
            print("but something is different\n")
            sleep(1)
            print("the tunnels seem off again")
            sleep(3)
            findExplosive()
            break
        elif option == "back" or option == "go back":
            print(
                "you decide jumping off of a cliff might have been a bad idea")
            sleep(2)
            print("you turn to head back")
            sleep(2)
            findExplosive()
            break
        inputError(option)
コード例 #8
0
ファイル: act2.py プロジェクト: lukesnc/TheCavesOfAntiquorum
def differentArea():
    print("you crawl back the way you came, but something's different\n")
    sleep(1)
    print("the walls seem different")
    sleep(1)
    print("the thicket is gone")
    sleep(3)
    print("\nthis doesn't make sense")
    sleep(1)
    print("your heart rate picks up\n")
    sleep(2)
    while True:
        print("look around or go back")
        option = input("> ")

        if option == "look" or option == "look around":
            print("you stop for a second and really look around\n")
            sleep(3)
            print("the walls are deformed, spikes coming in on all sides")
            sleep(2)
            print("there's a wretched smell hanging in the air")
            sleep(2)
            print(
                "it seems like the cave might close in on you at any second\n")
            sleep(3)
            printSlow("you start to panic\n\n")
            sleep(3)
            while True:
                print("keep looking or go back")
                option2 = input("> ")

                if option2 == "keep looking" or option2 == "keep":
                    sleep(2)
                    print(
                        "the more you look aroud the more terrified you become"
                    )
                    sleep(2)
                    print(
                        "you try to keep crawling forward but your arms give out\n"
                    )
                    sleep(2)
                    printSlow("your vision goes black......\n")
                    sleep(6)
                    clearScreen()
                    inspectThicket()
                    break
                elif option2 == "go back" or option2 == "back":
                    sleep(1)
                    print(
                        "you decide to head back before anything gets any wierder"
                    )
                    sleep(1)
                    print(
                        "quickly turning around you manage to bump your head a bit, but you push on\n"
                    )
                    jump()
                    break
                inputError(option2)
            break
        elif option == "back":
            print("you rub your eyes, you must be seeing things")
            sleep(1)
            print(
                "you turn back around and go the other way towards the sound of water"
            )
            sleep(2)
            jump()
            break
        inputError(option)