Skip to content

Instantly share code, notes, and snippets.

@writingdeveloper
Created November 20, 2017 07:14
Show Gist options
  • Save writingdeveloper/784e279a2add863595372eb44c588e59 to your computer and use it in GitHub Desktop.
Save writingdeveloper/784e279a2add863595372eb44c588e59 to your computer and use it in GitHub Desktop.
// 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]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment