thattacoguy

Yay?

Jan 25th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Check if the user is ready to play!
  2. confirm("Do you want to play a game?");
  3. var age = prompt("How old are you?");
  4. if (age < 18)
  5. {
  6.     console.log("Okay, but I'm not responsible for you sillyness!");
  7. }
  8. else
  9. {
  10.     console.log("Okay; have fun! ^_^");
  11. }
  12. console.log("Snow White and Batman were hanging out at the bus stop, waiting to go to the shops. There was a sale on and both needed some new threads. You've never really liked Batman. You walk up to him.");
  13. console.log("Batman glares at you.");
  14. var userAnswer = prompt("Are you feeling lucky, punk?");
  15. if (userAnswer === "yes")
  16. {
  17.     console.log("Batman hits you very hard. It's Batman and you're you! Of course Batman wins!");
  18. }
  19. else
  20. {
  21.     console.log("You did not say yes to feeling lucky. Good choice! You are a winner in the game of not getting beaten up by Batman.");
  22. }
  23. var feedback = prompt ("Did you like my game? Rate it from 1-10!");
  24. if (feedback >= 8)
  25. {
  26.     console.log("This is just the beginning of my game empire. Stay tuned for more! C: ");
  27. }
  28. else
  29. {
  30.     console.log("I slaved away at this game and you gave me that score?! The nerve! Just you wait! >:C");
  31. }
Advertisement
Add Comment
Please, Sign In to add comment