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

beta.r3js.org
-=yb4f310 2017-11-25 16:01:08 +01:00
parent 58e688c398
commit 1f9ceba1c2
1 changed files with 9 additions and 0 deletions

View File

@ -440,6 +440,9 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.scoreMesh.instance.quaternion.copy(this.camera.instance.quaternion);
this.scoreMesh.materials[0].opacity = 1.0;
this.scoreMesh.materials[0].updateInstance('opacity');
this.scoreMesh.position = enemy.mesh.position.clone();
this.scoreMesh.updateInstance('position');
@ -687,6 +690,12 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.totalTime += data.delta;
this.enemySpawnTime += data.delta;
this.scoreMesh.materials[0].opacity -= 0.1 * data.delta;
if (this.scoreMesh.materials[0].opacity < 0) {
this.scoreMesh.materials[0].opacity = 0;
}
this.scoreMesh.materials[0].updateInstance('opacity');
this.scene.meshes.map(
function(mesh) {
if (mesh.instance.material instanceof Array) {