Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 142 bytes modified
parent
0aba896bfd
commit
c39dc83dda
|
@ -754,8 +754,8 @@ GameLib.CustomCode.prototype.explode = function(position) {
|
|||
this.state.exploding = true;
|
||||
this.state.lives -= 1;
|
||||
|
||||
this.particleEnginePickle.position.x = position.x;
|
||||
this.particleEnginePickle.position.y = position.y;
|
||||
this.particleEnginePickle.position.x = (position.x * GameLib.CustomCode.BODY_SCALE_X) + GameLib.CustomCode.GRID_OFFSET_X;
|
||||
this.particleEnginePickle.position.y = (position.y * GameLib.CustomCode.BODY_SCALE_Y) + GameLib.CustomCode.GRID_OFFSET_Y;
|
||||
this.particleEnginePickle.updateInstance('position');
|
||||
|
||||
this.particleEnginePickle.enabled = true;
|
||||
|
|
Loading…
Reference in New Issue