src/segment.js
/*
 * A segment of a level.
 */
A segment of a level.
A segment of a level .
function Segment(x0) {
	var level = param.Level;
	var y1 = level.MaxGap * 0.5, y0 = -y1;
	this.x0 = x0;
	this.x1 = x0;
	this.floor = { x: x0, y: y0, items: [] };
	this.ceiling = { x: x0, y: y1, items: [] };
	this.colors = null;
	this.blocks = [];
}
function Segment ( x0 ) { var level = param . Level ; var y1 = level . MaxGap * 0.5 , y0 = - y1 ; this . x0 = x0 ; this . x1 = x0 ; this . floor = { x : x0 , y : y0 , items : [ ] } ; this . ceiling = { x : x0 , y : y1 , items : [ ] } ; this . colors = null ; this . blocks = [ ] ; }
A segment of a level.
A segment of a level .