From c39dc83dda91cf87444cfea45c28bfb07d7cd9f0 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 08:36:48 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 142 bytes modified --- 21g30t1e75.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 20798c7..01a4cb8 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -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;