;road crossing ;
;MaboLoop 2007;



;LEFT GATE BEGINS;

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

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

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

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


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

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

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

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

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

;LEFT GATE ENDS;

;RIGHT 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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

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,3,2,1,0
generatenormals,
setcolor,255,255,255
translate, -0.5,0,2

;RIGHT GATE ENDS;

;LEFT POSTS BEGIN;

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


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


;LEFT POSTS END;

;RIGHT POST BEGINS;

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 6.8, -0, 7.4
setcolor,255,255,255

createmeshbuilder
Cube, 0.2, 2.6, 0.2
Translate, 6.8, 1.8, 16.3
generatenormals,
setcolor,255,255,255


;RIGHT POST ENDS;


createmeshbuilder
addvertex,-4.3,    4,      6
addvertex,-4.3,    4.1,    6
addvertex,-4.3,    2,   12.2
addvertex,-4.3,    2.1,   11.7
addface,0,1,2,3
generatenormals,
setcolor,50,50,50
translate, 2,0,0







createmeshbuilder
addvertex,7.3,   4,      14
addvertex,7.3,   4.1,    14
addvertex,7.3,   2,   7
addvertex,7.3,   2,   7.3
addface,0,1,2,3
generatenormals,
setcolor,50,50,50
translate, -0.5,0,2


;STOP CIRCLE LEFT BEGINS;

createmeshbuilder
addvertex,-4.2,1.5,9.5
addvertex,-4.2,1.5,10.5
addvertex,-4.2,0.5,10.5
addvertex,-4.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
translate, 2,0,0

;STOP CIRCLE LEFT ENDS;

;STOP CIRCLE RIGHT 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,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, -0.5,0,2
;STOP CIRCLE RIGHT ENDS;