Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if lose. . .
- if (lives === 0) {
- document.getElementById("stickfight").innerHTML = "<src="../images/lose.gif"/>";
- }
- //if win!
- if (lives >= 0 && (counter + space === guesses.length)) {
- document.getElementById("stickfight").innerHTML = "<src="../images/stickrun.gif"/>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement