Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 150 bytes modified
parent
33cde60fde
commit
44d6ba86cc
|
@ -147,6 +147,10 @@ this.state = {
|
||||||
lives : 2
|
lives : 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GameLib.CustomCode.prototype.displayHUD = function() {
|
||||||
|
this.canvasHUD.text('hello', 10, 10, '10px sans-serif', '#ffffff');
|
||||||
|
}
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.waitReload = function(delta) {
|
GameLib.CustomCode.prototype.waitReload = function(delta) {
|
||||||
|
|
||||||
this.explodeTime += delta;
|
this.explodeTime += delta;
|
||||||
|
@ -1164,7 +1168,8 @@ GameLib.Event.Subscribe(
|
||||||
|
|
||||||
this.initializeGrid();
|
this.initializeGrid();
|
||||||
this.visualizeGrid();
|
this.visualizeGrid();
|
||||||
|
this.displayHUD();
|
||||||
|
|
||||||
this.snake = [
|
this.snake = [
|
||||||
this.createGameObject(
|
this.createGameObject(
|
||||||
GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,
|
GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,
|
||||||
|
|
Loading…
Reference in New Issue