diff --git a/21g30t1e75.js b/21g30t1e75.js index b8c0233..69d80c5 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -262,7 +262,11 @@ GameLib.CustomCode.prototype.displayHUD = function() { this.canvasHUD.line(50, 38, 462, 38, 2, "#000000"); this.canvasHUD.text('hiscore', 50, 32, '15px Pixeled', '#ffffff'); - + + var score = GameLib.Utils.PaddedText(6, '0', this.state.score) + 'cm'; + + this.canvasHUD.text(score, 200, 32, '15px Pixeled', '#ffffff'); + var images = []; if (this.state.lives === 3) {