Update: CC - Before Render - Moorcow (a2ow5l92js.js) 372 bytes modified
parent
7d5a79906c
commit
a132dd8ac3
|
@ -39,20 +39,21 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.fog = this.entityLoaded.fog;
|
this.fog = this.entityLoaded.fog;
|
||||||
this.bull = this.entityLoaded.bull;
|
this.bull = this.entityLoaded.bull;
|
||||||
this.star = this.entityLoaded.star;
|
this.star = this.entityLoaded.star;
|
||||||
|
this.santa = this.entityLoaded.santa;
|
||||||
|
this.scene = this.entityLoaded.scene;
|
||||||
this.burger = this.entityLoaded.burger;
|
this.burger = this.entityLoaded.burger;
|
||||||
this.parcel = this.entityLoaded.parcel;
|
this.parcel = this.entityLoaded.parcel;
|
||||||
this.santa = this.entityLoaded.santa;
|
|
||||||
this.renderer = this.entityLoaded.renderer;
|
this.renderer = this.entityLoaded.renderer;
|
||||||
this.raycaster = this.entityLoaded.raycaster;
|
this.raycaster = this.entityLoaded.raycaster;
|
||||||
this.kanister = this.entityLoaded.kanister;
|
this.kanister = this.entityLoaded.kanister;
|
||||||
this.scene = this.entityLoaded.scene;
|
|
||||||
this.leftLight = this.entityLoaded.leftLight;
|
this.leftLight = this.entityLoaded.leftLight;
|
||||||
this.rightLight = this.entityLoaded.rightLight;
|
this.rightLight = this.entityLoaded.rightLight;
|
||||||
|
this.scoreCanvas = this.entityLoaded.scoreCanvas;
|
||||||
this.throwerLight = this.entityLoaded.throwerLight;
|
this.throwerLight = this.entityLoaded.throwerLight;
|
||||||
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
|
||||||
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
||||||
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
||||||
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
|
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
|
||||||
|
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
||||||
|
|
||||||
this.minimumRendererRed = 0.1;
|
this.minimumRendererRed = 0.1;
|
||||||
|
|
||||||
|
@ -82,6 +83,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.kanisterLeakTime = 0.1;
|
this.kanisterLeakTime = 0.1;
|
||||||
this.kanisterSpawnScore = 50;
|
this.kanisterSpawnScore = 50;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.setNextKanisterSpawnScore = function() {
|
this.setNextKanisterSpawnScore = function() {
|
||||||
|
|
||||||
this.kanisterSpawnScore = this.score + 100;
|
this.kanisterSpawnScore = this.score + 100;
|
||||||
|
@ -654,6 +657,23 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.drawScore = function() {
|
||||||
|
|
||||||
|
var context = this.scoreCanvas.instance.getContext('2d');
|
||||||
|
|
||||||
|
context.textBaseline = "middle";
|
||||||
|
|
||||||
|
context.clearRect(0,0,this.canvas.width, this.canvas.height);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write text
|
||||||
|
*/
|
||||||
|
context.fillStyle = '#7e3b26';
|
||||||
|
context.font = '20pt BkBold';
|
||||||
|
context.fillText('10', 23, 52);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
this.totalTime += data.delta;
|
this.totalTime += data.delta;
|
||||||
this.enemySpawnTime += data.delta;
|
this.enemySpawnTime += data.delta;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue