const SKYBOX_ARRAY = [
"/uploads/starter/posx.jpg",
"/uploads/starter/negx.jpg",
"/uploads/starter/posy.jpg",
"/uploads/starter/negy.jpg",
"/uploads/starter/posz.jpg",
"/uploads/starter/negz.jpg"
];
const startRadius = 400; // distance from centre we start the camera at
const maxRadius = startRadius * 10; // maximum distance from camera we render things
var time = true;
var users = 1;
var result = 0
var hitPosition
var currentTime = 60
var timerId = null
function codingCourse() {
AB.msg ( `<H1> Your Score: ${result} </H1> <H1> TIME IS UP ! </H1>` );
timer = false;
}
AB.world.newRun = function() {
ABWorld.init3d ( startRadius, maxRadius, SKYBOX_ARRAY); // start a 3D scene:
};
ABWorld.scene.background = new THREE.CubeTextureLoader().load ( SKYBOX_ARRAY, function() // render background image
{
ABWorld.render();
AB.removeLoading();
AB.runReady = true;
});