Advertisement
baggiepr

Adventure Game Coding by Amy from Hiltingbury Y6

Jan 30th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.69 KB | None | 0 0
  1. from time import sleep
  2. lives=5
  3. ppts=0
  4. name=input("Type in the name you wish your adventurer to be called.")
  5. print("Hey there",name,"and welcome to the Jungle Jump")
  6. sleep(2.0)
  7. print("You spot a scaley crocodile, it's blood shot eyes glare at you in the silence")
  8. sleep(3.0)
  9. event1=input("Type t to trick it or s to swim past")
  10. if event1=="t":
  11.     print("You find a piece of meat on the floor")
  12.     sleep(3.0)
  13.     print("So you pick it up")
  14.     sleep(2.0)
  15.     print("Then you throw the meat far away")
  16.     sleep(2.0)
  17.     lives=lives-1
  18.     sleep(2.0)
  19.     ppts=ppts+2
  20. else:
  21.     print("You swim away in the swamp safetly")
  22.     sleep(2.0)
  23.     lives=lives+1
  24.     sleep(2.0)
  25.     ppts=ppts-1
  26. print("You now have",lives,"lives left")
  27. print("You now have",ppts,"parrot points left")
  28. sleep(2.0)
  29. print("Suddenly a crazy baboon jumps in front of your feet and starts threatening you")
  30. sleep(4.5)
  31. event2=input("Type c to climb a tree or f to fight it")
  32. if event2=="c":
  33.     print("You decide to climb the nearest tree")
  34.     sleep(3.0)
  35.     print("You climb nice and high so it can't see you anymore")
  36.     sleep(3.0)
  37.     print("Luckily there's a vine hanging down in front of you, so you grab it and swing to your freedom")
  38.     sleep(4.0)
  39.     lives=lives+2
  40.     sleep(2.0)
  41.     ppts=ppts+2
  42. else:
  43.     print("You decide to fight it")
  44.     print("Sadly it punches you so hard you can't carry on")
  45.     sleep(2.0)
  46.     lives=lives-1
  47.     sleep(2.0)
  48.     ppts=ppts-4
  49. print("You now have",lives,"lives left")
  50. print("You now have",ppts,"parrot points left")
  51. sleep(2.0)
  52. print("A slithering snake is in your path. It has started to hiss at you with it's spotty fork tongue")
  53. sleep(3.0)
  54. event3=input("Type j to jump or s to scream")
  55. if event3  =="j":
  56.     print("Congratulations you jumped over the snake saftly")
  57.     sleep(4.0)
  58.     lives=lives+2
  59.     sleep(2.0)
  60.     ppts=ppts+4
  61. else:
  62.     print("You decide to scream at it")
  63.     sleep(3.0)
  64.     print("Nothing happens so you're stuck there")
  65.     sleep(2.0)
  66.     lives=lives-3
  67.     sleep(2.0)
  68.     ppts=ppts-2
  69. print("You now have",lives,"lives left")
  70. print("You now have",ppts,"parrot points left")
  71. sleep(2.0)
  72. print("An unfriendly tiger has been disturbed from its sleep and spotted you")
  73. sleep(4.5)
  74. event4=input("Type s to throw a stone at it or b to bow and arrow it")
  75. if event4=="s":
  76.     print("You chose s to throw a stone at it")
  77.     sleep(3.0)
  78.     print("As your shot was rubbish it came back at you and wacked you in the face")
  79.     sleep(3.0)
  80.     lives=lives-2
  81.     sleep(2.0)
  82.     ppts=ppts-6
  83. else:
  84.     print("You gathered up you courage and remebered that you have a bow and arrow in your backpack")
  85.     sleep(5.0)
  86.     print("you shoot it dead and have now ate it as you were running out of energy")
  87.     sleep(4.5)
  88.     print("Yum yum tastes just like CHICKEN!")
  89.     lives=lives+3
  90.     sleep(2.0)
  91.     ppts=ppts+2
  92. print("You now have",lives,"lives left")
  93. print("You now have",ppts,"parrot points left")
  94. sleep(2.0)
  95. print("Suddenly a crazy baboon jumps in front of your feet and starts threatening you")
  96. sleep(4.5)
  97. event5=input("Type c to climb a tree or f to fight it")
  98. if event5=="c":
  99.     print("You decide to climb the nearest tree")
  100.     sleep(3.0)
  101.     print("You climb nice and high so it can't see you anymore")
  102.     sleep(3.0)
  103.     print("Luckily there's a vine hanging down in front of you, so you grab it and swing to your freedom")
  104.     sleep(4.0)
  105.     lives=lives+2
  106.     sleep(2.0)
  107.     ppts=ppts+2
  108. else:
  109.     print("You decide to fight it")
  110.     print("Sadly it punches you so hard you can't carry on")
  111.     sleep(2.0)
  112.     lives=lives-1
  113.     sleep(2.0)
  114.     ppts=ppts-4
  115. print("You now have",lives,"lives left")
  116. print("You now have",ppts,"parrot points left")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement