Update: CC - Before Render - Moorcow (qemp4een6t.js) 106 bytes modified

beta.r3js.org
-=yb4f310 2017-11-27 14:56:22 +01:00
parent e4b9c8e30c
commit fac5c4291d
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
if (this.meshes[meshType][i].inUse === false) { if (this.meshes[meshType][i].inUse === false) {
this.meshes[meshType][i].inUse = true; this.meshes[meshType][i].inUse = true;
mesh = this.meshes[meshType][i].mesh; mesh = this.meshes[meshType][i].mesh;
return mesh;
} }
} }
@ -833,6 +834,8 @@ if (this.kanisterTime > this.kanisterLife) {
this.kanisterTime = 0; this.kanisterTime = 0;
this.kanisters -= 1; this.kanisters -= 1;
console.log('kanister count: ' + this.kanisters);
GameLib.Event.Emit( GameLib.Event.Emit(
GameLib.Event.GAME_DATA, GameLib.Event.GAME_DATA,
{ {
@ -842,6 +845,7 @@ if (this.kanisterTime > this.kanisterLife) {
); );
if (this.kanisters < 0) { if (this.kanisters < 0) {
console.log('no more kanisters');
GameLib.Event.Emit( GameLib.Event.Emit(
GameLib.Event.GAME_OVER, GameLib.Event.GAME_OVER,
{ {