;road crossing ;
;MaboLoop 2007;



;LEFT GATE BEGINS;

createmeshbuilder
addvertex,-7.3,2,6
addvertex,-7.3,2,14
addvertex,-7.3,1.8,14
addvertex,-7.3,1.8,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,1.5,6
addvertex,-7.3,1.5,14
addvertex,-7.3,1.3,14
addvertex,-7.3,1.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,1,6
addvertex,-7.3,1,14
addvertex,-7.3,0.8,14
addvertex,-7.3,0.8,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,0.5,6
addvertex,-7.3,0.5,14
addvertex,-7.3,0.3,14
addvertex,-7.3,0.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,2,6
addvertex,-7.3,2,6.3
addvertex,-7.3,0.3,10
addvertex,-7.3,0.3,9.7
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,2,10
addvertex,-7.3,2,10.3
addvertex,-7.3,0.3,14
addvertex,-7.3,0.3,13.7
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,2,9.9
addvertex,-7.3,2,10.1
addvertex,-7.3,0.3,10.1
addvertex,-7.3,0.3,9.9
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,2,6
addvertex,-7.3,2,6.2
addvertex,-7.3,0.3,6.2
addvertex,-7.3,0.3,6
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,-7.3,2,13.8
addvertex,-7.3,2,14
addvertex,-7.3,0.3,14
addvertex,-7.3,0.3,13.8
addface,0,1,2,3
generatenormals,
setcolor,255,255,255

;LEFT GATE ENDS;

;RIGHT GATE BEGINS;

createmeshbuilder
addvertex,11.5,2,6
addvertex,11.5,2,14
addvertex,11.5,1.8,14
addvertex,11.5,1.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,1.5,6
addvertex,11.5,1.5,14
addvertex,11.5,1.3,14
addvertex,11.5,1.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,1,6
addvertex,11.5,1,14
addvertex,11.5,0.8,14
addvertex,11.5,0.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,0.5,6
addvertex,11.5,0.5,14
addvertex,11.5,0.3,14
addvertex,11.5,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255


createmeshbuilder
addvertex,11.5,2,6
addvertex,11.5,2,6.3
addvertex,11.5,0.3,10
addvertex,11.5,0.3,9.7
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,2,10
addvertex,11.5,2,10.3
addvertex,11.5,0.3,14
addvertex,11.5,0.3,13.7
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,2,9.9
addvertex,11.5,2,10.1
addvertex,11.5,0.3,10.1
addvertex,11.5,0.3,9.9
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,2,6
addvertex,11.5,2,6.2
addvertex,11.5,0.3,6.2
addvertex,11.5,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

createmeshbuilder
addvertex,11.5,2,13.8
addvertex,11.5,2,14
addvertex,11.5,0.3,14
addvertex,11.5,0.3,13.8
addface,3,2,1,0
generatenormals,
setcolor,255,255,255

;RIGHT GATE ENDS;

;LEFT POSTS BEGIN;

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, -7.3, 1.8, 5.4
setcolor,255,255,255

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, -7.3, -0, 14.3
setcolor,255,255,255


;LEFT POSTS END;

;RIGHT POST BEGINS;

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 11.5, -0, 5.4
setcolor,255,255,255

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 11.5, 1.8, 14.3
generatenormals,
setcolor,255,255,255


;RIGHT POST ENDS;


createmeshbuilder
addvertex,-7.3,    4,      6
addvertex,-7.3,    4.2,    6
addvertex,-7.3,    2.10,   12.7
addvertex,-7.3,    2.20,   11.7
addface,0,1,2,3
generatenormals,
setcolor,50,50,50








createmeshbuilder
addvertex,11.5,   4,      14
addvertex,11.5,   4.2,    14
addvertex,11.5,   2.2,   7.5
addvertex,11.5,   2,   7.7
addface,0,1,2,3
generatenormals,
setcolor,50,50,50

;ROADWAY STARTS;

createmeshbuilder
addvertex,-50,-0.01,14
addvertex,-0.8,-0.01,14
addvertex,-0.8,-0.01,6
addvertex,-50,-0.01,6
addvertex,-0.8,-0.150,6
addvertex,-50,-0.150,6
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50

createmeshbuilder
addvertex,-0.6,-0.01,14
addvertex,0.6,-0.01,14
addvertex,0.6,-0.01,6
addvertex,-0.6,-0.01,6
addvertex,0.6,-0.150,6
addvertex,-0.6,-0.150,6
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50


createmeshbuilder
addvertex,0.8,-0.01,14
addvertex,3.2,-0.01,14
addvertex,3.2,-0.01,6
addvertex,0.8,-0.01,6
addvertex,3.2,-0.150,6
addvertex,0.8,-0.150,6
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50


createmeshbuilder
addvertex,3.4,-0.01,14
addvertex,4.6,-0.01,14
addvertex,4.6,-0.01,6
addvertex,3.4,-0.01,6
addvertex,4.6,-0.150,6
addvertex,3.4,-0.150,6
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50


createmeshbuilder
addvertex,4.8,-0.01,14
addvertex,50,-0.01,14
addvertex,50,-0.01,6
addvertex,4.8,-0.01,6
addvertex,50,-0.150,6
addvertex,4.8,-0.150,6
addface,0,1,2,3
addface,3,2,4,5
generatenormals,
setcolor,50,50,50


;ROADWAY ENDS;

;STOP CIRCLE LEFT BEGINS;

createmeshbuilder
addvertex,-7.2,1.5,9.5
addvertex,-7.2,1.5,10.5
addvertex,-7.2,0.5,10.5
addvertex,-7.2,0.5,9.5
addface,0,1,2,3
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0

;STOP CIRCLE LEFT ENDS;

;STOP CIRCLE RIGHT BEGINS;



createmeshbuilder
addvertex,11.4,1.5,9.5
addvertex,11.4,1.5,10.5
addvertex,11.4,0.5,10.5
addvertex,11.4,0.5,9.5
addface,3,2,1,0
generatenormals
loadtexture,circle.png
settexturecoordinates,0,1,0
settexturecoordinates,1,1,1
settexturecoordinates,2,0,1
settexturecoordinates,3,0,0
setdecaltransparentcolor,255,0,0

;STOP CIRCLE RIGHT ENDS;