Update: CC - Before Render - Moorcow (qemp4een6t.js) 106 bytes modified
parent
e4b9c8e30c
commit
fac5c4291d
|
@ -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,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue