diff --git a/21g30t1e75.js b/21g30t1e75.js index 904ef69..df36d79 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -214,9 +214,16 @@ GameLib.CustomCode.prototype.createFood = function(delta) { mesh.position.x = (positionX * GameLib.CustomCode.BODY_SCALE_X) + GameLib.CustomCode.GRID_OFFSET_X; mesh.position.y = (positionY * GameLib.CustomCode.BODY_SCALE_Y) + GameLib.CustomCode.GRID_OFFSET_Y; + /** + * We apply the scale to the mesh too - since they appear too big when normal + */ + mesh.scale.x = GameLib.CustomCode.BODY_SCALE_X; + mesh.scale.y = GameLib.CustomCode.BODY_SCALE_Y; + mesh.visible = true; mesh.updateInstance('position'); + mesh.updateInstance('scale'); mesh.updateInstance('visible'); }.bind(this);