--treatmentfactoryminigame.lua


SetScoreTextPosition(215, 733);
SetHudDock(0, 632);
SetClock(53, 727);
SetTutorialShadowTexture(textureDir.."conveyor_t");

-- Bar properties
bar = {x = 15.0, y = 30.0};

-- world properties
world = {
	upperBound = {
		x =  width + width,
		y =  height + 100.0,--700.0	
	},
	lowerBound = {
		x = -width,
		y = -200.0		
	},
	gravity = {
		x = 0,
		y = -1.5		
	},
};

piecearea = {

	x1 =0, 
	x2 =116, 
	y1 =0,  
	y2 =702,

}


CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_small_d",	
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine001.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 90,
	height = 38,

	position = {
		x = 57,
		y = 50	
	},
	
	--cogsteeths properties
	--the name of the small picture of the piece
	cogName = textureDir.."cog2",
	cognumber = 5,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =60000 ,
	directionX = 1,
	directionY =0,
	angle=0,

}

CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_small_i",	
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine001_left.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 90,
	height = 38,

	position = {
		x = 57,
		y = 125	
	},
	
	--cogsteeths properties
	cogName = textureDir.."cog2",
	cognumber = 5,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =60000 ,
	directionX = -1,
	directionY =0,
	angle=0,

}

CreatePieceGenerator {


	textureName = 	textureDir.."piece9_s",
	
		--the name of the small picture of the piece
	texturePieceName = textureDir.."piece9",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	position = {
		x = 57, y = 200	},
	
	center = {x = 58, y =65},

	shapePoints = {
		{ 
			{ 102, 8}, { 10, 100}, {116 ,116 }
		},
	},
	
	-- ingredient properties
	piecePhysics = {
	
		friction =  1, 
		restitution =  0,
		density = 0
	},

}


CreatePieceGenerator {


	textureName = 	textureDir.."piece8_s",
	
		--the name of the small picture of the piece
	texturePieceName = textureDir.."piece8",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	position = {
		x = 57, y = 275	},
	
	center = {x = 58, y = 65},

	shapePoints = {
		{ 
			{ 14, 8}, {8, 116}, {106 ,100 }
		},
	},
	
	-- ingredient properties
	piecePhysics = {
	
		friction =  1, 
		restitution =  0,
		density = 0
	},

}

CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_lu",	
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine002_left.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 172,
	height = 38,
	
	position = {
		x = 57,
		y = 350	
	},
	
	--cogsteeths properties
	cogName = textureDir.."cog",
	cognumber = 10,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =6000 ,
	directionX = -1,
	directionY =0,
	angle=-45,

}

CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_l",
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine002_left.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 172,
	height = 38,

	position = {
		x = 57,
		y = 425	
	},
	
	--cogsteeths properties
	cogName = textureDir.."cog",
	cognumber = 10,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =60000 ,
	directionX = -1,
	directionY =0,
	angle=0,

}


CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_r",	
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine002.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 172,
	height = 38,	
	
	position = {
		x =57,
		y =500	
	},
	
	--cogsteeths properties
	cogName = textureDir.."cog",
	cognumber = 10,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =60000 ,
	directionX = 1,
	directionY =0,
	angle=0,

}

CreateConveyorGenerator {


	textureName = 	textureDir.."conveyor_ru",	
	
		--the name of the small picture of the piece
	textureConveyorName = textureDir.."animations/anim_machine002.xml",
	
	--the max number of pieces to create
	MaxNumber = 1,
	
	width = 172,
	height = 38,

	position = {
		x =57,
		y = 575	
	},
	
	--cogsteeths properties
	cogName = textureDir.."cog",
	cognumber = 10,
	cogwidth = 10,
	cogheight = 16,
	motorspeed = 0.5,
	maxmotorforce =60000 ,
	directionX = 1,
	directionY =0,
	angle=45,

}



--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece5_s",
--~ 	
--~ 	--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece5",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 200, y = 20
--~ 	},
--~ 	
--~ 	center = {x = 67, y = 35},

--~ 	shapePoints = {
--~ 		{ { 0, 56 }, { 4, 63 }, { 136, 8 }, { 132, 0 } },
--~ 	},
--~ 	
--~ 	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction = 0.2, 
--~ 		restitution =  0,
--~ 		density =  0.0,
--~ 	},
--~ };


--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece1_s",
--~ 	
--~ 	--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece1",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 400, y =20	},
--~ 	

--~ 	center = {x = 100, y = 40},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 0, 2 }, { 0, 23 }, { 77, 85 }, { 105, 82 } , {105, 70 },  { 36, 3 },
--~ 		},
--~ 		{ 
--~ 			{ 174, 4 },  {134, 68 }, { 132, 82 } , {152, 84 }, {200, 22 }, {200, 3 },
--~ 		},
--~ 	},
--~ 	
--~ -- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction = 0.2, 
--~ 		restitution =  0,
--~ 		density =  0.0,
--~ 	},
--~ 	
--~ };


--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece2_s",	
	
	--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece2",
	
	--the max number of pieces to create
--~ 	MaxNumber = 2,
	
--~ 	position = {
--~ 		x = 600, y = 20
--~ 	},
--~ 	center = {x = 100, y = 50},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 100, 0 }, { 4, 80 }, {198, 80 },
--~ 		},
--~ 	},
	
	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction = 0.2, 
--~ 		restitution =  0,
--~ 		density =  0.0,
--~ 	},

--~ }


--~CreatePieceGenerator {

--~
--~	textureName = 	textureDir.."piece3_s",
--~	
--~		--the name of the small picture of the piece
--~	texturePieceName = textureDir.."piece3",
--~	
--~	--the max number of pieces to create
--~	MaxNumber = 100,
--~	
--~	position = {
--~		x = 800, y = 20	},
--~	
--~	center = {x = 100, y = 10},
--~
--~	shapePoints = {
--~		{ 
--~			{ 0, 0 }, { 0, 17 }, {200 ,17 },{ 200,0 },
--~		},
--~	},
--~	
--~	-- ingredient properties
--~	piecePhysics = {
--~	
--~		friction =  1, 
--~		restitution =  0,
--~		density = 0
--~	},
--~
--~}


--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece9_s",
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece9",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 800, y = 20	},
--~ 	
--~ 	center = {x = 100, y = 100},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 1, 185 }, { 15, 200 }, {199 ,16 },{ 184,1 }
--~ 		},
--~ 	},
--~ 	
--~ 	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction =  1, 
--~ 		restitution =  0,
--~ 		density = 0
--~ 	},

--~ }

--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece7_s",
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece7",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 600, y = 20	},
--~ 	
--~ 	center = {x = 40, y = 40},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 0, 0 }, { 0, 80 }, {80 ,80 },{ 80,0 }
--~ 		},
--~ 	},
--~ 	
--~ 	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction =  1, 
--~ 		restitution =  0,
--~ 		density = 0
--~ 	},

--~ }
--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece8_s",
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece8",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 200, y = 20	},
--~ 	
--~ 	center = {x = 100, y = 100},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 0, 14 }, { 183, 200 }, {200 ,183 },{ 15,0 }
--~ 		},
--~ 	},
--~ 	
--~ 	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction =  1, 
--~ 		restitution =  0,
--~ 		density = 0
--~ 	},

--~ }

--~ CreatePieceGenerator {


--~ 	textureName = 	textureDir.."piece10_s",
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	texturePieceName = textureDir.."piece10",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	position = {
--~ 		x = 400, y = 20	},
--~ 	
--~ 	center = {x = 100, y = 12},

--~ 	shapePoints = {
--~ 		{ 
--~ 			{ 0, 0 }, { 0, 25 }, {200 ,25 },{ 200,0 }
--~ 		},
--~ 	},
--~ 	
--~ 	-- ingredient properties
--~ 	piecePhysics = {
--~ 	
--~ 		friction =  1, 
--~ 		restitution =  0,
--~ 		density = 0
--~ 	},

--~ }

--~ CreateConveyorGenerator {


--~ 	textureName = 	textureDir.."conveyor_s",	
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	textureConveyorName = textureDir.."conveyor",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	width = 200,
--~ 	height = 45,

--~ 	position = {
--~ 		x = 100,
--~ 		y = 20	
--~ 	},
--~ 	
--~ 	--cogsteeths properties
--~ 	cognumber = 10,
--~ 	cogwidth = 10,
--~ 	cogheight = 16,
--~ 	motorspeed = 0.5,
--~ 	maxmotorforce =6000 ,
--~ 	directionX = 1,
--~ 	directionY =0,
--~ 	angle=0,

--~ }
--~ CreateConveyorGenerator {


--~ 	textureName = 	textureDir.."conveyor_s",	
--~ 	
--~ 		--the name of the small picture of the piece
--~ 	textureConveyorName = textureDir.."conveyor",
--~ 	
--~ 	--the max number of pieces to create
--~ 	MaxNumber = 1,
--~ 	
--~ 	width = 200,
--~ 	height = 45,

--~ 	position = {
--~ 		x = 900,
--~ 		y = 20	
--~ 	},
--~ 	
--~ 	--cogsteeths properties
--~ 	cognumber = 10,
--~ 	cogwidth = 10,
--~ 	cogheight = 16,
--~ 	motorspeed = 0.5,
--~ 	maxmotorforce =6000 ,
--~ 	directionX = -1,
--~ 	directionY =0,
--~ 	angle=-45,

--~ }

	
	



