Advertisement
baggiepr

Adventure Coding by Kory Y6 Orchard Lea Junior

Jan 29th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.78 KB | None | 0 0
  1. from time import sleep
  2. xp=5
  3. lives=3
  4. print("""welcome""")
  5. input("\npress the enter key to continue")
  6. name=input("what is your name?")
  7. cave=input("what is the name of your cave")
  8. print("come into the",cave,name)
  9. print("""As you turn round the corner you see giant bear asleep blocking the way forward""")
  10. sleep(3.0)
  11. input("\npress the enter key to continue")
  12. event1=input("type a to attack the bear or type s to sneak past")
  13. if event1=="a":
  14.     print("you decide to attack the asleep bear")
  15.     sleep(3.0)
  16.     print("the bear wakes up and tries to attack you.")
  17.     print("he gives you a bad mark on your arm")
  18.     xp=xp-1
  19.     lives=lives-1
  20. else:
  21.     print("you decide to sneak past the bear")
  22.     sleep(3.0)
  23.     print("he twitches but stays asleep you got by safe")
  24.     xp=xp+1
  25.     lives=lives+0
  26. print("you have",xp,"xp and",lives,"lives")
  27. import sys
  28. if lives <= 0:
  29.     print(name,"is dead")
  30.  
  31.     sleep(5.0)
  32.     print("haha")
  33.     sleep(5.0)
  34.     sys.exit(0)
  35. sleep(3.0)
  36. print("""as you step forward stone start to fall rapidly from the ceiling""")
  37. input("\npress the enter key to continue")
  38. event2=input("type r to run through or type b to wait for it to all to fall down")
  39. if event2=="r":
  40.     sleep(3.0)
  41.     print("you run through and lots of stones fall down on you")
  42.     xp=xp-2
  43.     lives=lives-1
  44. else:
  45.     print("you wait for the stones to fall")
  46.     sleep(3.0)
  47.     print("you escape easily unhurt")
  48.     xp=xp+1
  49.     lives=lives+1
  50. print("you have",xp,"xp and",lives,"lives")
  51. import sys
  52. if lives <= 0:
  53.     print(name,"is dead")
  54.     sleep(5.0)
  55.     print("haha")
  56.     sleep(5.0)
  57.     sys.exit(0)
  58.     sleep(3.0)
  59. print("""you come across venomous vipers,posoinous spiders and deadly scorpions on the ceiling""")
  60. input("\npress the enter key to continue")
  61. event3=input("type a to attack them or r to run under them")
  62. if event3=="a":
  63.     print("you attack them and get a few scorpion stings but you survive")
  64.     xp=xp+0
  65.     lives=lives-1
  66. else:
  67.     print("you try to run under them")
  68.     sleep(3.0)
  69.     print("they all fall on you and you get really injured")
  70.     xp=xp-1
  71.     lives=lives-2
  72. print("you have",xp,"xp and",lives,"lives")
  73. import sys
  74. if lives <= 0:
  75.     print(name,"is dead")
  76.     sleep(5.0)
  77.     print("haha")
  78.     sleep(5.0)
  79.     sys.exit(0)
  80.     sleep(3.0)
  81. print("""you stumble across 2 pathways""")
  82. input("\npress the enter key to continue")
  83. event4=input("type r to go down the right pathway or l for the left pathway")
  84. if event4=="r":
  85.     print("you choose the right pathway")
  86.     xp=xp-1
  87.     lives=lives-10
  88. else:
  89.     print("You choose the left pathway")
  90.     xp=xp+10
  91.     lives=lives+5
  92. print("you have",xp,"xp and",lives,"lives")
  93. import sys
  94. if lives <= 0:
  95.     print(name,"is dead")
  96.     sleep(5.0)
  97.     print("haha")
  98.     sleep(5.0)
  99.     sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement