Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 96 bytes modified

beta.r3js.org
-=yb4f310 2018-02-18 12:59:30 +01:00
parent a2afb4f051
commit a312fec3b9
1 changed files with 5 additions and 2 deletions

View File

@ -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)
);
@ -1670,7 +1673,7 @@ GameLib.Event.Emit(
this.drawGrid();
this.drawStatus();
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
}.bind(this)