Advertisement
baggiepr

Adventure Coding by Emily Y6 Hiltingbury Junior

Jan 29th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.09 KB | None | 0 0
  1. from time import sleep
  2. exp=0
  3. lives=15
  4. name=input("Type in the name of your character")
  5. frog=input("Type in the name of your frog")
  6. print("Welcome",name,"and",frog,"to the Deadly Dark Forest")
  7. print("""
  8. You have now entered the Deadly Dark Forest.""")
  9. print("You find a rope tied to a branch")
  10. #Choice
  11. event1=input("Type p to pull it Type w to walk past.")
  12. #Consequence
  13. if event1==("p"):
  14.     print("A cage is opened.")
  15.     sleep(3.0)
  16.     print("An owl is released")
  17.     print("You saved an injured owl!")
  18.     sleep(1.0)
  19.     print("Well Done!")
  20.     exp=exp+3
  21. else:
  22.     print("You walked past.....")
  23.     sleep(5.0)
  24.     print("You hear a rustling sound.")
  25.     sleep(2.0)
  26.     print("A giant spider quickly approaches you. It attacks!")
  27.     sleep(3.0)
  28.     print("It goes away.")
  29.     exp=exp+1
  30.     lives=lives-2
  31. print("A little child is huddling up under a tree, crying.")
  32. #Choice
  33. event1=input("Type s to advance and attack with your sword Type t to try to talk to the child")
  34. #Consequence
  35. if event1=="s":
  36.     print("The child looks up at you as you swing your sword.")
  37.     sleep(3.0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement