Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 78 bytes modified
parent
8425deb8c3
commit
78e9f9a4c2
|
@ -20,6 +20,7 @@ this.image_3 = GameLib.EntityManager.Instance.findComponentById('pjy4
|
||||||
this.image_4 = GameLib.EntityManager.Instance.findComponentById('5t3olr10pw');
|
this.image_4 = GameLib.EntityManager.Instance.findComponentById('5t3olr10pw');
|
||||||
this.image_5 = GameLib.EntityManager.Instance.findComponentById('qrh0foyins');
|
this.image_5 = GameLib.EntityManager.Instance.findComponentById('qrh0foyins');
|
||||||
this.image_6 = GameLib.EntityManager.Instance.findComponentById('0bjbsj4sss');
|
this.image_6 = GameLib.EntityManager.Instance.findComponentById('0bjbsj4sss');
|
||||||
|
this.image_glow = GameLib.EntityManager.Instance.findComponentById('aei9gfkjb6');
|
||||||
this.image_flames_small = GameLib.EntityManager.Instance.findComponentById('vp4zkbx7yr');
|
this.image_flames_small = GameLib.EntityManager.Instance.findComponentById('vp4zkbx7yr');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,12 +31,13 @@ this.scene = GameLib.EntityManager.Instance.findComponentById('i1ac678a5d');
|
||||||
/**
|
/**
|
||||||
* Materials
|
* Materials
|
||||||
*/
|
*/
|
||||||
this.gridMaterial = GameLib.EntityManager.Instance.findComponentById('xpkbcvson9');
|
this.gridMaterial = GameLib.EntityManager.Instance.findComponentById('xpkbcvson9');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Score Canvas
|
* Score
|
||||||
*/
|
*/
|
||||||
this.canvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx');
|
this.scoreCanvas = GameLib.EntityManager.Instance.findComponentById('85d0jk6dhx');
|
||||||
|
this.scoreTexture = GameLib.EntityManager.Instance.findComponentById('kva68t4dm8');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animations
|
* Animations
|
||||||
|
@ -48,9 +50,8 @@ this.animationSystems = GameLib.EntityManager.Instance.queryComponents(GameLib
|
||||||
*/
|
*/
|
||||||
this.burnLight = GameLib.EntityManager.Instance.findComponentById('q13y5xwv6c');
|
this.burnLight = GameLib.EntityManager.Instance.findComponentById('q13y5xwv6c');
|
||||||
|
|
||||||
this.glow = GameLib.EntityManager.Instance.findComponentById('dowsg5nm59');
|
|
||||||
this.glowMaterial = GameLib.EntityManager.Instance.findComponentById('36mg75tqnw');
|
|
||||||
this.scoreTexture = GameLib.EntityManager.Instance.findComponentById('kva68t4dm8');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -444,11 +445,11 @@ GameLib.CustomCode.prototype.removeLines = function () {
|
||||||
|
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.drawStatus = function () {
|
GameLib.CustomCode.prototype.drawStatus = function () {
|
||||||
var context = this.canvas.instance.getContext('2d');
|
var context = this.scoreCanvas.instance.getContext('2d');
|
||||||
|
|
||||||
context.textBaseline = "middle";
|
context.textBaseline = "middle";
|
||||||
|
|
||||||
context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
context.clearRect(0, 0, this.scoreCanvas.width, this.scoreCanvas.height);
|
||||||
|
|
||||||
context.fillStyle = "rgba(58, 36, 25, 0.7)";
|
context.fillStyle = "rgba(58, 36, 25, 0.7)";
|
||||||
context.fillRect(12, 30, 485, 178);
|
context.fillRect(12, 30, 485, 178);
|
||||||
|
@ -1421,13 +1422,16 @@ GameLib.Event.Emit(
|
||||||
this.createTile('tile_5', 'image_5');
|
this.createTile('tile_5', 'image_5');
|
||||||
this.createTile('tile_6', 'image_6');
|
this.createTile('tile_6', 'image_6');
|
||||||
this.createTile('tile_flames_small', 'image_flames_small');
|
this.createTile('tile_flames_small', 'image_flames_small');
|
||||||
|
this.createTile('tile_glow', 'image_glow');
|
||||||
|
|
||||||
|
this.glowMaterial = this.tile_glow.materials[0];
|
||||||
|
|
||||||
this.createTile('tile_center');
|
this.createTile('tile_center');
|
||||||
|
|
||||||
this.tile_center.materials[0].transparent = true;
|
this.tile_center.materials[0].transparent = true;
|
||||||
this.tile_center.materials[0].updateInstance('transparent');
|
this.tile_center.materials[0].updateInstance('transparent');
|
||||||
|
|
||||||
this.tile_center.materials[0].opacity = 0;
|
this.tile_center.materials[0].opacity = 0;
|
||||||
this.tile_center.materials[0].updateInstance('opacity');
|
this.tile_center.materials[0].updateInstance('opacity');
|
||||||
|
|
||||||
this.createTile('tile_bacon_disappearing');
|
this.createTile('tile_bacon_disappearing');
|
||||||
|
|
Loading…
Reference in New Issue