From 14a6e0b1a7490eacec21e3726bb8e6a243da1e91 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Sun, 16 Dec 2012 04:01:13 -0500 Subject: [PATCH] whoops, swap height/width --- 2d.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2d.js b/2d.js index a42f1eb..cac53ea 100644 --- a/2d.js +++ b/2d.js @@ -44,7 +44,7 @@ $(document).ready(function(){ var x = 0; var y = 0; for (var i = 0; i < cells; i++) { - world.push(new cell(x, y, cellHeight, cellWidth)); + world.push(new cell(x, y, cellWidth, cellHeight)); x += cellWidth; Math.random() > .5 ? world[i].revive() : world[i].kill(); } @@ -58,7 +58,7 @@ $(document).ready(function(){ var s = '0' + world.map(function(c) { return c.state }).join('') + '0'; world = []; for (var i = 0; i < cells; i++) { - world.push(new cell(x, y, cellHeight, cellWidth)); + world.push(new cell(x, y, cellWidth, cellHeight)); x += cellWidth; state[s.substr(i, 3)] == 1 ? world[i].revive() : world[i].kill(); } -- 2.30.2