Skip to content

Instantly share code, notes, and snippets.

@cxytomo
Created April 11, 2013 11:44
Show Gist options
  • Save cxytomo/5362734 to your computer and use it in GitHub Desktop.
Save cxytomo/5362734 to your computer and use it in GitHub Desktop.
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