// Paused dug pocket: copper ore, rubble and dirt against stone, granite and dirt. // Use --js "..." to set daylight or R.lens after this setup; CAM frames the pocket. const cx = 360, cy = 300; for (let y = 0; y < 480; y++) for (let x = 100; x < 620; x++) { const dx = x - cx, dy = y - cy; const floor = 20 + Math.round(3 * Math.sin(dx * 0.11)); const wall = Math.abs(dx) > 68 || dy < -42 || dy >= floor; const ground = dx < -23 ? STONE : dx < 23 ? GRANITE : DIRT; let m = wall ? ground : EMPTY; if (!wall && dy > floor - 11 - Math.round(3 * Math.sin(dx * 0.18))) { m = dx < -23 ? RSTONE : dx < 23 ? CUORE : LDIRT; if ((x * 7 + y * 11) % 19 === 0) m = CUORE; } const i = y * W + x; bgm[i] = 0; setCell(i, m, 22, wall ? F_NAT : 0); } for (let x = 100; x < 620; x++) { surfY[x] = 100; dirtY[x] = 180; graniteY[x] = 400; } updateRoof(); window.CAM = [cx, cy]; SET.daylight = 0; SET.lighting = 'full';