lard Grid
Code:
var startX = -699245;
var endX = 699245;
var spacing = 490;
var topY = -10000;
var bottomY = 10000;
for (var y = topY;
y <= bottomY;
y += spacing) { track.addLine(new Line(startX, y, endX, y));
} var startX = -10000;
var endX = 10000;
var spacing = 490;
var topY = -699245;
var bottomY = 699245;
for (var x = startX;
x <= endX;
x += spacing) { track.addLine(new Line(x, topY, x, bottomY));
}
One-Way Plus
Code:
var startLine = 40;
var position = 50;
var direction = 1;
track.addLine(new Line(direction*699245,position,startLine,position));
var startLine = 40;
var position = -30;
var direction = 1;
track.addLine(new Line(direction*699245,position,startLine,position));
var startLine = -40;
var position = 50;
var direction = -1;
track.addLine(new Line(direction*699245,position,startLine,position));
var startLine = -40;
var position = -30;
var direction = -1;
track.addLine(new Line(direction*699245,position,startLine,position));
var startLine = 50;
var position = 40;
var direction = 1;
track.addLine(new Line(position,direction*699245,position,startLine));
var startLine = 50;
var position = -40;
var direction = 1;
track.addLine(new Line(position,direction*699245,position,startLine));
var startLine = -30;
var position = 40;
var direction = -1;
track.addLine(new Line(position,direction*699245,position,startLine));
var startLine = -30;
var position = -40;
var direction = -1;
track.addLine(new Line(position,direction*699245,position,startLine));