;Route 2 avec trottoirs

;route 1

Createmeshbuilder
Cube, 3, 0.075, 12.5
SetColor, 100, 100, 100
Translate, 0,-0.076, 12.5

Createmeshbuilder
Addvertex, 3.00, 0, 0
Addvertex,-3.00, 0, 0
Addvertex,-3.00, 0, 25
Addvertex, 3.00, 0, 25
Addface2, 0, 1, 2, 3

Loadtexture, goudron2.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 1
Settexturecoordinates, 3, 0, 1
SetDecalTransparentColor, 0, 0, 255

;route 2

Createmeshbuilder
Addvertex,-3.00, 0, 15.5
Addvertex,-3.00, 0, 9.50
Addvertex,-28.0, 0, 9.50
Addvertex,-28.0, 0, 15.5
Addface2, 0, 1, 2, 3

Loadtexture, goudron2.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 2
Settexturecoordinates, 3, 0, 2
SetDecalTransparentColor, 0, 0, 255


;trottoir gauche route 1

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 0
Addvertex,-3.00, 0.15, 0
Addvertex,-3.00, 0.00, 0
Addvertex,-4.17, 0.00, 0
Addface2, 0,1,2,3
SetColor, 100, 100, 100

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 0
Addvertex,-4.17, 0.15, 8.33
Addvertex,-3.00, 0.15, 9.5
Addvertex,-3.00, 0.15, 0
Addface2, 0,1,2,3

Loadtexture, goudron1.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,1,0
Settexturecoordinates, 2,1,1
Settexturecoordinates, 3,0,1

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 16.67
Addvertex,-4.17, 0.15, 25
Addvertex,-3.00, 0.15, 25
Addvertex,-3.00, 0.15, 15.5
Addface2, 0,1,2,3

Loadtexture, goudron1.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,1,0
Settexturecoordinates, 2,1,1
Settexturecoordinates, 3,0,1

CreateMeshBuilder,
Addvertex,-3.00, 0.15, 0
Addvertex,-3.00, 0.15, 9.5
Addvertex,-3.00, 0.00, 9.5
Addvertex,-3.00, 0.00, 0
Addface2, 0,1,2,3

CreateMeshBuilder,
Addvertex,-3.00, 0.15, 15.5
Addvertex,-3.00, 0.15, 25
Addvertex,-3.00, 0.00, 25
Addvertex,-3.00, 0.00, 15.5
Addface2, 0,1,2,3

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 8.33
Addvertex,-4.17, 0.15, 0
Addvertex,-4.17, 0.00, 0
Addvertex,-4.17, 0.00, 8.33
Addface2, 0,1,2,3
SetColor, 100, 100, 100

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 25
Addvertex,-4.17, 0.15, 16.67
Addvertex,-4.17, 0.00, 16.67
Addvertex,-4.17, 0.00, 25
Addface2, 0,1,2,3
SetColor, 100, 100, 100

;trottoirs route 2

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 8.33
Addvertex,-28.0, 0.15, 8.33
Addvertex,-28.0, 0.15, 9.5
Addvertex,-3.00, 0.15, 9.5
Addface2, 0,1,2,3

Loadtexture, goudron1.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,1,0
Settexturecoordinates, 2,1,1
Settexturecoordinates, 3,0,1

CreateMeshBuilder,
Addvertex,-28.0, 0.15, 16.67
Addvertex,-4.17, 0.15, 16.67
Addvertex,-3.00, 0.15, 15.5
Addvertex,-28.0, 0.15, 15.5
Addface2, 0,1,2,3

Loadtexture, goudron1.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,1,0
Settexturecoordinates, 2,1,1
Settexturecoordinates, 3,0,1

CreateMeshBuilder,
Addvertex,-28.0, 0.15, 15.5
Addvertex,-3.00, 0.15, 15.5
Addvertex,-3.00, 0.00, 15.5
Addvertex,-28.0, 0.00, 15.5
Addface2, 0,1,2,3

CreateMeshBuilder,
Addvertex,-3.00, 0.15, 9.5
Addvertex,-28.0, 0.15, 9.5
Addvertex,-28.0, 0.00, 9.5
Addvertex,-3.00, 0.00, 9.5
Addface2, 0,1,2,3

CreateMeshBuilder,
Addvertex,-4.17, 0.15, 16.67
Addvertex,-28.0, 0.15, 16.67
Addvertex,-28.0, 0.00, 16.67
Addvertex,-4.17, 0.00, 16.67
Addface2, 0,1,2,3
SetColor, 100, 100, 100

CreateMeshBuilder,
Addvertex,-28.0, 0.15, 8.33
Addvertex,-4.17, 0.15, 8.33
Addvertex,-4.17, 0.00, 8.33
Addvertex,-28.0, 0.00, 8.33
Addface2, 0,1,2,3
SetColor, 100, 100, 100



;trottoir droite route 1

CreateMeshBuilder,
Addvertex, 3.00, 0.15, 0
Addvertex, 4.17, 0.15, 0
Addvertex, 4.17, 0.00, 0
Addvertex, 3.00, 0.00, 0
Addface2, 0,1,2,3
SetColor, 100, 100, 100

CreateMeshBuilder,
Addvertex, 4.17, 0.15, 25
Addvertex, 4.17, 0.15, 0
Addvertex, 3.00, 0.15, 0
Addvertex, 3.00, 0.15, 25
Addface2, 0,1,2,3

Loadtexture, goudron1.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,1,0
Settexturecoordinates, 2,1,1
Settexturecoordinates, 3,0,1

CreateMeshBuilder,
Addvertex, 3.00, 0.15, 25
Addvertex, 3.00, 0.15, 0
Addvertex, 3.00, 0.00, 0
Addvertex, 3.00, 0.00, 25
Addface2, 0,1,2,3

CreateMeshBuilder,
Addvertex, 4.17, 0.15, 0
Addvertex, 4.17, 0.15, 25
Addvertex, 4.17, 0.00, 25
Addvertex, 4.17, 0.00, 0
Addface2, 0,1,2,3
SetColor, 100, 100, 100


