;road crossing ;
;MaboLoop 2007;



;LEFT GATE BEGINS;

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

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

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

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

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

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

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

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

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

;LEFT GATE ENDS;


;RIGHT GATE BEGINS;

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

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

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

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


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

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

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

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

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

;RIGHT GATE ENDS;

;2nd RIGHT GATE BEGINS;

createmeshbuilder
addvertex,7.5,2,6
addvertex,7.5,2,14
addvertex,7.5,1.8,14
addvertex,7.5,1.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

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

createmeshbuilder
addvertex,7.5,1,6
addvertex,7.5,1,14
addvertex,7.5,0.8,14
addvertex,7.5,0.8,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

createmeshbuilder
addvertex,7.5,0.5,6
addvertex,7.5,0.5,14
addvertex,7.5,0.3,14
addvertex,7.5,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

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

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

createmeshbuilder
addvertex,7.5,2,9.9
addvertex,7.5,2,10.1
addvertex,7.5,0.3,10.1
addvertex,7.5,0.3,9.9
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

createmeshbuilder
addvertex,7.5,2,6
addvertex,7.5,2,6.2
addvertex,7.5,0.3,6.2
addvertex,7.5,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

createmeshbuilder
addvertex,7.5,2,13.8
addvertex,7.5,2,14
addvertex,7.5,0.3,14
addvertex,7.5,0.3,13.8
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,

;2ndRIGHT GATE ENDS;

;3rd RIGHT GATE BEGINS;

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

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

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

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


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

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

createmeshbuilder
addvertex,13,2,9.9
addvertex,13,2,10.1
addvertex,13,0.3,10.1
addvertex,13,0.3,9.9
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 2.5,0,0,


createmeshbuilder
addvertex,13.50,2,6
addvertex,13.50,2,6.2
addvertex,13.50,0.3,6.2
addvertex,13.50,0.3,6
addface,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, 1.5,0,0,


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

;3rd RIGHT GATE ENDS;

;LEFT POSTS BEGIN;

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

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


;LEFT POSTS END;

;RIGHT POST BEGINS;

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

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 6.3, -0, 14.3
generatenormals,
setcolor,255,255,255


;RIGHT POST ENDS;

;2ndRIGHT POST BEGINS;

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

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 9, -0, 14.3
generatenormals,
setcolor,255,255,255


;2ndRIGHT POST ENDS;

;3rd RIGHT POST BEGINS;

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

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 16, -0, 14.3
generatenormals,
setcolor,255,255,255


;3rd RIGHT POST ENDS;

;ROADWAY STARTS;

createmeshbuilder
addvertex,-100,-0.01,14
addvertex,-0.8,-0.01,14
addvertex,-0.8,-0.01,6
addvertex,-100,-0.01,6
addface,0,1,2,3
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
addface,0,1,2,3
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
addface,0,1,2,3
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
addface,0,1,2,3
generatenormals,
setcolor,50,50,50


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


;ROADWAY ENDS;

;STOP CIRCLE LEFT BEGINS;

createmeshbuilder
addvertex,-2.99,1.5,9.5
addvertex,-2.99,1.5,10.5
addvertex,-2.99,0.5,10.5
addvertex,-2.99,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,5.99,1.5,9.5
addvertex,5.99,1.5,10.5
addvertex,5.99,0.5,10.5
addvertex,5.99,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;


;2ndSTOP CIRCLE RIGHT BEGINS;



createmeshbuilder
addvertex,7.39,1.5,9.5
addvertex,7.39,1.5,10.5
addvertex,7.39,0.5,10.5
addvertex,7.39,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
translate, 1.5,0,0,
;2ndSTOP CIRCLE RIGHT ENDS;

;3rd STOP CIRCLE RIGHT BEGINS;



createmeshbuilder
addvertex,13.24,1.5,9.5
addvertex,13.49,1.5,10.5
addvertex,13.49,0.5,10.5
addvertex,13.24,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
translate, 1.45,0,0,
;3rd STOP CIRCLE RIGHT ENDS;