Saturday, February 16, 2013
Batman beats you! JS.
confirm("Are you ready to play?");
var age = 23;
if (age <= prompt("what is your age?")){
console.log("Let's the show begin!");}
else
{console.log("You may continue, but be aware!");}
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.");
console.log("Batman glares at you.");
var userAnswer=prompt("Are you feeling lucky, punk?");
if (userAnswer === "YES" )
{console.log("Batman hits you very hard. It's Batman and you're you! Of course Batman wins!");}
else
{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.");}
var feedback = prompt("How did I do from 1 to 10?");
if (feedback>8)
{console.log("This is just the beginning of my game empire. Stay tuned for more!");}
else
{console.log("I slaved away at this game and you gave me that score?! The nerve! Just you wait!");}
//This is the first game I finished with the big help of Codecademy.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please, comment!