Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 96 bytes modified
parent
a2afb4f051
commit
a312fec3b9
|
@ -22,6 +22,7 @@ this.image_5 = GameLib.EntityManager.Instance.findComponentById('qrh0
|
|||
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_displacement = GameLib.EntityManager.Instance.findComponentById('5dy57otkmu');
|
||||
|
||||
/**
|
||||
* Scene
|
||||
|
@ -1422,13 +1423,14 @@ if (GameLib.Utils.UndefinedOrNull(this.subscriptions)) {
|
|||
/**
|
||||
* This code executes when the 'bottom' has been reached (the block is stopping)
|
||||
*/
|
||||
GameLib.CustomCode.prototype.bottomReached = function() {
|
||||
GameLib.CustomCode.prototype.stopBlock = function() {
|
||||
|
||||
var gridPositions = this.getBlockGridPositions(this.block);
|
||||
|
||||
gridPositions.map(
|
||||
|
||||
function (position) {
|
||||
|
||||
/**
|
||||
* If there already is a mesh - remove it -
|
||||
*/
|
||||
|
@ -1440,6 +1442,7 @@ GameLib.CustomCode.prototype.bottomReached = function() {
|
|||
value: GameLib.CustomCode.TETRIS_GRID_TAKEN,
|
||||
mesh: position.mesh
|
||||
};
|
||||
|
||||
}.bind(this)
|
||||
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue