Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 15 bytes modified

beta.r3js.org
-=yb4f310 2018-03-20 14:42:06 +01:00
parent 7d1a0dc34f
commit c2aaf70b99
1 changed files with 5 additions and 5 deletions

View File

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