Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.04 KB | None | 0 0
  1. class Elevator(Room):
  2.     def func():
  3.         """This is a function to be called when the room is entered. This allows for "cutscenes" between rooms, or scenes."""
  4.         clear()
  5.         action("You walk inside the elevator.")
  6.         time.sleep(2)
  7.  
  8.     title = "Which floor will you take?"
  9.     choices = {
  10.         "Floor2":"Floor 2",
  11.         "Floor3":"Floor 3"
  12.     }
  13.  
  14. class Floor2(Room):
  15.     choice = False  # declare that there will be no choices.
  16.     def func():
  17.         clear()
  18.         action("The elevator door opens to the second floor.")
  19.         time.sleep(2)
  20.         action("You step outside, and you see a large hallway...")
  21.         print("TO BE CONTINUED...")
  22.    
  23.     next = None
  24.  
  25.  
  26.  
  27. class Floor3(Room):
  28.     choice = False  # declare that there will be no choices.
  29.     def func():
  30.         clear()
  31.         action("The elevator door opens to the third floor.")
  32.         time.sleep(2)
  33.         action("You step outside, and you see a large open field...")
  34.         print("TO BE CONTINUED...")
  35.    
  36.     next = None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement