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 ) );