From dd1ca954e497006d0c13aad2f82cdeff0c38b148 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 14 Feb 2018 15:36:16 +0100 Subject: [PATCH] Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 267 bytes modified --- 2xswm1bwq8.js | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/2xswm1bwq8.js b/2xswm1bwq8.js index c629eca..7fc7ac0 100644 --- a/2xswm1bwq8.js +++ b/2xswm1bwq8.js @@ -1416,23 +1416,31 @@ GameLib.Event.Emit( this.createTile('tile_4', 'image_4'); this.createTile('tile_5', 'image_5'); this.createTile('tile_6', 'image_6'); - this.createTile('tile_flames_small', 'image_flames_small'); - this.createTile('tile_glow', 'image_glow'); + this.createTile('tile_flames_small', 'image_flames_small'); + + this.tile_flames_small.visible = false; + this.tile_flames_small.updateInstance('visible'); + + this.tile_flames_small.materials[0].transparent = true; + this.tile_flames_small.materials[0].updateInstance('transparent'); + + this.tile_flames_small.geometry.width = '11'; + this.tile_flames_small.geometry.height = '11'; + this.tile_flames_small.geometry.updateInstance('width'); + + this.createTile('tile_glow', 'image_glow'); + + this.tile_glow.visible = false; + this.tile_glow.updateInstance('visible'); + this.tile_glow.materials[0].transparent = true; this.tile_glow.materials[0].updateInstance('transparent'); - this.tile_flames_small.materials[0].transparent = true; - this.tile_flames_small.materials[0].updateInstance('transparent'); - this.tile_glow.geometry.width = '12'; this.tile_glow.geometry.height = '12'; this.tile_glow.geometry.updateInstance('width'); - - this.tile_flames_small.geometry.width = '11'; - this.tile_flames_small.geometry.height = '11'; - this.tile_flames_small.geometry.updateInstance('width'); - + this.tile_glowMaterial = this.tile_glow.materials[0]; this.createTile('tile_center'); @@ -1448,6 +1456,9 @@ GameLib.Event.Emit( this.tile_bacon_disappearing.materials[0].color.fromHex('#3e1d1d'); this.tile_bacon_disappearing.materials[0].updateInstance('color'); + this.tile_bacon_disappearing.visible = false; + this.tile_bacon_disappearing.updateInstance('visible'); + this.drawGrid(); this.drawStatus();