;tunnel 0

;entrée
Createmeshbuilder
Addvertex,-5.12, 9.12, 5
Addvertex, 5.12, 9.12, 5
Addvertex, 5.12,-0.30, 5
Addvertex,-5.12,-0.30, 5
Addface2, 0, 1, 2, 3

Loadtexture, tunnel-1.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 1
Settexturecoordinates, 3, 0, 1
SetDecalTransparentColor, 192, 192, 192

Createmeshbuilder
Addvertex,-10.24, 9.12, 5
Addvertex,-5.12, 9.12, 5
Addvertex,-5.12,-0.30, 5
Addvertex,-10.24,-0.30, 5
Addface2, 0, 1, 2, 3

Loadtexture, mur1.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 2
Settexturecoordinates, 3, 0, 2
SetDecalTransparentColor, 192, 192, 192

Createmeshbuilder
Addvertex, 5.12, 9.12, 5
Addvertex, 10.24, 9.12, 5
Addvertex, 10.24,-0.30, 5
Addvertex, 5.12,-0.30, 5
Addface2, 0, 1, 2, 3

Loadtexture, mur1.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 2
Settexturecoordinates, 3, 0, 2
SetDecalTransparentColor, 192, 192, 192

;Rocher

CreateMeshBuilder,
Addvertex, 5.90, 9.90, 5
Addvertex, 4.90, 9.90, 0
Addvertex, 2.90,-0.29, 0
Addvertex, 3.90,-0.29, 5
Addface2, 0, 1, 2, 3

Loadtexture, ..\wall\rocher1.png
Settexturecoordinates, 0, 0.4, 0
Settexturecoordinates, 1, 1.0, 0
Settexturecoordinates, 2, 1.0, 1
Settexturecoordinates, 3, 0.4, 1


;Sol
CreateMeshBuilder,
Addvertex,-3.90,-0.29, 0
Addvertex,-3.90,-0.29, 25
Addvertex, 0.00,-0.29, 25
Addvertex, 0.00,-0.29, 0
Addface2, 0, 1, 2, 3

Loadtexture, ..\wall\talus2.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 4, 0
Settexturecoordinates, 2, 4, 1
Settexturecoordinates, 3, 0, 1

CreateMeshBuilder,
Addvertex, 3.90,-0.29, 25
Addvertex, 3.90,-0.29, 0
Addvertex, 0.00,-0.29, 0
Addvertex, 0.00,-0.29, 25
Addface2, 0, 1, 2, 3

Loadtexture, ..\wall\talus2.png
Settexturecoordinates, 0,0,0
Settexturecoordinates, 1,4,0
Settexturecoordinates, 2,4,1
Settexturecoordinates, 3,0,1

;Ombre
CreateMeshBuilder,
Addvertex,-3.90,-0.28, 5
Addvertex,-3.90,-0.28, 20
Addvertex, 3.90,-0.28, 20
Addvertex, 3.90,-0.28, 5
Addface2, 0, 1, 2, 3
SetColor, 0, 0, 0, 128

;interieur g
CreateMeshBuilder,
Addvertex,-0.00, 7.84, 5
Addvertex,-0.00, 7.84, 20
Addvertex,-1.60, 7.45, 20
Addvertex,-1.60, 7.45, 5
Addvertex,-2.42, 6.89, 20
Addvertex,-2.42, 6.89, 5
Addvertex,-3.08, 6.16, 20
Addvertex,-3.08, 6.16, 5
Addvertex,-3.60, 4.70, 20
Addvertex,-3.60, 4.70, 5
Addvertex,-3.66, 3.54, 20
Addvertex,-3.66, 3.54, 5
Addvertex,-3.60, 2.58, 20
Addvertex,-3.60, 2.58, 5
Addvertex,-2.82,-0.30, 20
Addvertex,-2.82,-0.30, 5
Addface2, 0, 1, 2, 3
Addface2, 3, 2, 4, 5
Addface2, 5, 4, 6, 7
Addface2, 7, 6, 8, 9
Addface2, 9, 8, 10, 11
Addface2, 11, 10, 12, 13
Addface2, 13, 12, 14, 15

Loadtexture, briques.png
Settexturecoordinates, 0, 0, 0.5
Settexturecoordinates, 1, 3, 0.5
Settexturecoordinates, 2, 3, 1
Settexturecoordinates, 3, 0, 1
Settexturecoordinates, 4, 3, 0.5
Settexturecoordinates, 5, 0, 0.5
Settexturecoordinates, 6, 3, 1
Settexturecoordinates, 7, 0, 1
Settexturecoordinates, 8, 3, 0.5
Settexturecoordinates, 9, 0, 0.5
Settexturecoordinates, 10, 3, 1
Settexturecoordinates, 11, 0, 1
Settexturecoordinates, 12, 3, 0.5
Settexturecoordinates, 13, 0, 0.5
Settexturecoordinates, 14, 3, 2
Settexturecoordinates, 15, 0, 2

;interieur d
CreateMeshBuilder,
Addvertex, 0.00, 7.84, 20
Addvertex, 0.00, 7.84, 5
Addvertex, 1.42, 7.45, 5
Addvertex, 1.42, 7.45, 20
Addvertex, 2.24, 6.89, 5
Addvertex, 2.24, 6.89, 20
Addvertex, 2.90, 6.16, 5
Addvertex, 2.90, 6.16, 20
Addvertex, 3.42, 4.70, 5
Addvertex, 3.42, 4.70, 20
Addvertex, 3.48, 3.54, 5
Addvertex, 3.48, 3.54, 20
Addvertex, 3.42, 2.58, 5
Addvertex, 3.42, 2.58, 20
Addvertex, 2.64,-0.30, 5
Addvertex, 2.64,-0.30, 20
Addface2, 0, 1, 2, 3
Addface2, 3, 2, 4, 5
Addface2, 5, 4, 6, 7
Addface2, 7, 6, 8, 9
Addface2, 9, 8, 10, 11
Addface2, 11, 10, 12, 13
Addface2, 13, 12, 14, 15

Loadtexture, briques.png
Settexturecoordinates, 0, 0, 0.5
Settexturecoordinates, 1, 3, 0.5
Settexturecoordinates, 2, 3, 1
Settexturecoordinates, 3, 0, 1
Settexturecoordinates, 4, 3, 0.5
Settexturecoordinates, 5, 0, 0.5
Settexturecoordinates, 6, 3, 1
Settexturecoordinates, 7, 0, 1
Settexturecoordinates, 8, 3, 0.5
Settexturecoordinates, 9, 0, 0.5
Settexturecoordinates, 10, 3, 1
Settexturecoordinates, 11, 0, 1
Settexturecoordinates, 12, 3, 0.5
Settexturecoordinates, 13, 0, 0.5
Settexturecoordinates, 14, 3, 2
Settexturecoordinates, 15, 0, 2

;sortie
Createmeshbuilder
Addvertex, 5.12, 9.12, 20
Addvertex,-5.12, 9.12, 20
Addvertex,-5.12,-0.30, 20
Addvertex, 5.12,-0.30, 20
Addface2, 0, 1, 2, 3

Loadtexture, tunnel-1.png
Settexturecoordinates, 0, 0, 0
Settexturecoordinates, 1, 1, 0
Settexturecoordinates, 2, 1, 1
Settexturecoordinates, 3, 0, 1
SetDecalTransparentColor, 192, 192, 192


