Created
April 11, 2013 11:44
-
-
Save cxytomo/5362734 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initGame(){ | |
index = Math.floor(Math.random()*letters.length); | |
letterToGuess = letters[index]; | |
//console.log(letterToGuess); | |
lettersGuessed = []; | |
window.addEventListener('keyup',keyPressed,true); | |
var formElement = document.getElementById('createImageData'); | |
formElement.addEventListener('click',createImageDataPressed,false); | |
drawScreen(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment