Advertisement
DigiDuncan

The Legend of Honeydew

Nov 26th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. color 13:PRINT "Do you...?"
  2. PRINT" A: hit with " ;: color 11:PRINT "diamond sword?"
  3. PRINT" B: Push out door, then close door?"
  4. color 13:PRINT "Select A or B."
  5.  
  6. do
  7. dim as string key = ucase(inkey()) 'im storing the result of it because we will compare it multiple times
  8. if key = "A" then
  9. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "sizzles."
  10. color 13:print "Do you...?"
  11. PRINT" A: hit again?"
  12. PRINT" B: leave it there?"
  13. color 13:PRINT "Select A or B."
  14. do
  15. dim as string key = ucase(inkey()) 'im storing the result of it because we will compare it multiple times
  16. if key = "A" then
  17. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "dies! Collect " ;: color 6:PRINT"1 " ;: color 2:PRINT"gunpowder."
  18. exit do
  19. goto creeper_win
  20. elseif key = "B" then
  21. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "explodes! Luckily, your house is bedrock."
  22. goto creeper_win
  23. exit do
  24. end if
  25. sleep 100, 1
  26.  
  27. loop
  28. elseif key = "B" then
  29. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "stares at you through the iron door."
  30. exit do
  31. end if
  32. sleep 100, 1
  33.  
  34. loop
  35. sleep 1000
  36. creeper_win: color 13:PRINT "You defeated the " ;: color 10:PRINT "Creeper" ;: color 13:PRINT "!"
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement