Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 7 bytes modified
parent
78e9f9a4c2
commit
57a7173b2a
|
@ -50,11 +50,6 @@ this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib
|
||||||
*/
|
*/
|
||||||
this.burnLight = GameLib.EntityManager.Instance.findComponentById('q13y5xwv6c');
|
this.burnLight = GameLib.EntityManager.Instance.findComponentById('q13y5xwv6c');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initial Game Settings
|
* Initial Game Settings
|
||||||
* @type {number}
|
* @type {number}
|
||||||
|
@ -128,7 +123,7 @@ GameLib.CustomCode.prototype.startAnimation = function (index) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var glow = this.glow.clone();
|
var glow = this.tile_glow.clone();
|
||||||
|
|
||||||
glow.position.y = index;
|
glow.position.y = index;
|
||||||
glow.position.x = (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5;
|
glow.position.x = (GameLib.CustomCode.TETRIS_GRID_WIDTH / 2) - 0.5;
|
||||||
|
@ -159,8 +154,8 @@ GameLib.CustomCode.prototype.startAnimation = function (index) {
|
||||||
this.burnLight.intensity = Math.sin(__animationObject.time);
|
this.burnLight.intensity = Math.sin(__animationObject.time);
|
||||||
this.burnLight.updateInstance('intensity');
|
this.burnLight.updateInstance('intensity');
|
||||||
|
|
||||||
this.glowMaterial.opacity = Math.sin(__animationObject.time);
|
this.tile_glowMaterial.opacity = Math.sin(__animationObject.time);
|
||||||
this.glowMaterial.updateInstance('opacity');
|
this.tile_glowMaterial.updateInstance('opacity');
|
||||||
|
|
||||||
if (__animationObject.time < (Math.PI / 2)) {
|
if (__animationObject.time < (Math.PI / 2)) {
|
||||||
|
|
||||||
|
@ -1424,7 +1419,7 @@ GameLib.Event.Emit(
|
||||||
this.createTile('tile_flames_small', 'image_flames_small');
|
this.createTile('tile_flames_small', 'image_flames_small');
|
||||||
this.createTile('tile_glow', 'image_glow');
|
this.createTile('tile_glow', 'image_glow');
|
||||||
|
|
||||||
this.glowMaterial = this.tile_glow.materials[0];
|
this.tile_glowMaterial = this.tile_glow.materials[0];
|
||||||
|
|
||||||
this.createTile('tile_center');
|
this.createTile('tile_center');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue