function level1() { //setup textTime = 0; textDisplay = 1; //boxes boxes.push({ x: cWidth / 2 + 200, y: cHeight / 1.25, z: 0, w: 500, h: 500, l: 0, c: "#ff0000" //red }); boxes.push({ x: cWidth / 2 - 80, y: cHeight / 2 + player.size * 3, z: 0, w: 200, h: 500, l: 0, c: "#0021CB" //blue }); boxes.push({ x: cWidth / 2 + 100, y: cHeight / 2, z: 0, w: 200, h: 500, l: 0, c: "#0021CB" //blue }); boxes.push({ x: cWidth / 2 + 700 - 1, y: cHeight / 2, z: 0, w: 150, h: 500, l: 0, c: "#00ff00" //green }); boxes.push({ //left wall x: -100, y: cHeight / 2 - 750, z: 0, w: cWidth / 2 + 20 + 1, //the +1 is to make the blocks overlap because otherwise they show a very small but noticeable line between them h: 1000, l: 0, c: "#0021CB" //blue }); boxes.push({ x: cWidth / 2 + 850 - 1, y: cHeight / 2, z: 0, w: 200 + 1, h: 500, l: 0, c: "#0021CB" //blue }); boxes.push({ //right wall x: cWidth / 2 + 1050 - 1, y: cHeight / 2 - 750, z: 0, w: cWidth / 2 + 20 + 1, h: 1000, l: 0, c: "#0021CB" //blue }); boxes.push({ //top x: -100, y: cHeight / 2 - 750, z: 0, w: cWidth + 1070, h: cHeight / 2 + 50, l: 0, c: "#0021CB" //blue }); //hints hints.push({ x: cWidth / 2 - 45, y: cHeight / 2 + player.size * 2, z: 0, radius: 40, id: 2 }); hints.push({ x: cWidth / 2 + 250, y: cHeight / 2 - player.size, z: 0, radius: 50, id: 3 }); hints.push({ x: cWidth / 2 + 750, y: cHeight / 2 - player.size, z: 0, radius: 50, id: 4 }); //goal goal.x = cWidth / 2 + 1000; goal.y = cHeight / 2 - player.size - 10; goal.z = 0; goal.r = 15; }