diff --git a/2xswm1bwq8.js b/2xswm1bwq8.js index 88baf26..160c2ae 100644 --- a/2xswm1bwq8.js +++ b/2xswm1bwq8.js @@ -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)