From c2aaf70b99d7e6ab828c52f932d8ffba7aa89460 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 20 Mar 2018 14:42:06 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 15 bytes modified --- 21g30t1e75.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 4d0854c..c3eb296 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -84,13 +84,13 @@ GameLib.CustomCode.prototype.visualizeGrid = function (color) { this.starsGeometry = new THREE.Geometry(); this.grid.map( - function(x) { - this.grid[x].map( - function(y) { + function(x, xIndex) { + x.map( + function(y, yIndex) { this.starsGeometry.vertices.push( new THREE.Vector3( - x + GameLib.CustomCode.GRID_OFFSET_X, - y + GameLib.CustomCode.GRID_OFFSET_Y, + xIndex + GameLib.CustomCode.GRID_OFFSET_X, + yIndex + GameLib.CustomCode.GRID_OFFSET_Y, 5 ) );