Update: CC - Before Render - Moorcow (a2ow5l92js.js) 97 bytes modified
parent
a132dd8ac3
commit
f57d42476d
|
@ -49,6 +49,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
this.leftLight = this.entityLoaded.leftLight;
|
||||
this.rightLight = this.entityLoaded.rightLight;
|
||||
this.scoreCanvas = this.entityLoaded.scoreCanvas;
|
||||
this.scoreTexture = this.entityLoaded.scoreTexture;
|
||||
this.throwerLight = this.entityLoaded.throwerLight;
|
||||
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
|
||||
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
|
||||
|
@ -663,7 +664,7 @@ this.drawScore = function() {
|
|||
|
||||
context.textBaseline = "middle";
|
||||
|
||||
context.clearRect(0,0,this.canvas.width, this.canvas.height);
|
||||
context.clearRect(0,0,this.scoreCanvas.width, this.scoreCanvas.height);
|
||||
|
||||
/**
|
||||
* Write text
|
||||
|
@ -672,7 +673,9 @@ this.drawScore = function() {
|
|||
context.font = '20pt BkBold';
|
||||
context.fillText('10', 23, 52);
|
||||
|
||||
}
|
||||
}.bind(this)
|
||||
|
||||
|
||||
|
||||
this.totalTime += data.delta;
|
||||
this.enemySpawnTime += data.delta;
|
||||
|
@ -697,6 +700,8 @@ this.scene.meshes.map(
|
|||
|
||||
if (this.mouseIsDown)
|
||||
{
|
||||
this.drawScore();
|
||||
|
||||
this.kanisterTime += data.delta;
|
||||
|
||||
this.renderer.clearColor.r += 0.01;
|
||||
|
|
Loading…
Reference in New Issue