diff --git a/21g30t1e75.js b/21g30t1e75.js index d936db9..89fcd20 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -147,6 +147,10 @@ this.state = { lives : 2 }; +GameLib.CustomCode.prototype.displayHUD = function() { + this.canvasHUD.text('hello', 10, 10, '10px sans-serif', '#ffffff'); +} + GameLib.CustomCode.prototype.waitReload = function(delta) { this.explodeTime += delta; @@ -1164,7 +1168,8 @@ GameLib.Event.Subscribe( this.initializeGrid(); this.visualizeGrid(); - + this.displayHUD(); + this.snake = [ this.createGameObject( GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,