Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 150 bytes modified

beta.r3js.org
-=yb4f310 2018-03-23 11:27:03 +01:00
parent 33cde60fde
commit 44d6ba86cc
1 changed files with 6 additions and 1 deletions

View File

@ -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,