It would need to loop 12 ramparts, with the y position increasing by 8 every-time.
Any help would be much appreciated.
var rampart6 = createMesh(new THREE.CubeGeometry(2, 4, 6),"stone.jpg");
rampart6.castShadow = true;
function createMesh(geom, imageFile) {
var material = new THREE.MeshPhongMaterial();
var texture =
new THREE.TextureLoader().load("img/" + imageFile);
material.map = texture;
var mesh = new THREE.Mesh(geom, material);
return mesh;
}
// position the rampart 6
rampart6.position.x = 17.5;
rampart6.position.y = 26;
rampart6.position.z = 69;
// add the rampart 6 to the scene
scene.add(rampart6);