Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Display Score
- var displayScoreLevel = function(aScore, aLevel) {
- var canvas = document.getElementsByTagName('canvas');
- var firstCanvasTag = canvas[0];
- scoreLevelDiv.innerHTML = 'Score : ' + aScore + ' / ' + 'Level : ' + aLevel;
- document.body.insertBefore(scoreLevelDiv, firstCanvasTag[0]);
- };
Add Comment
Please, Sign In to add comment