Update: CC - Before Render - Moorcow (a2ow5l92js.js) 372 bytes modified

beta.r3js.org
-=yb4f310 2017-11-25 15:16:18 +01:00
parent 7d5a79906c
commit a132dd8ac3
1 changed files with 25 additions and 5 deletions

View File

@ -39,21 +39,22 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.fog = this.entityLoaded.fog;
this.bull = this.entityLoaded.bull;
this.star = this.entityLoaded.star;
this.santa = this.entityLoaded.santa;
this.scene = this.entityLoaded.scene;
this.burger = this.entityLoaded.burger;
this.parcel = this.entityLoaded.parcel;
this.santa = this.entityLoaded.santa;
this.renderer = this.entityLoaded.renderer;
this.raycaster = this.entityLoaded.raycaster;
this.kanister = this.entityLoaded.kanister;
this.scene = this.entityLoaded.scene;
this.leftLight = this.entityLoaded.leftLight;
this.rightLight = this.entityLoaded.rightLight;
this.scoreCanvas = this.entityLoaded.scoreCanvas;
this.throwerLight = this.entityLoaded.throwerLight;
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
this.minimumRendererRed = 0.1;
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
@ -82,6 +83,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.kanisterLeakTime = 0.1;
this.kanisterSpawnScore = 50;
this.setNextKanisterSpawnScore = function() {
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.enemySpawnTime += data.delta;