From 44d6ba86cc476df923bd83cbaa68362daf57b876 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 11:27:03 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 150 bytes modified --- 21g30t1e75.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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,