miwale

Voxel Cube World — Game Art Style Spec

A bright MagicaVoxel-style miniature world: every object is a real 3D cube grid, baked to sprites under one warm afternoon sun.

Characters, props, collectibles, particles and even HUD icons are small 3D voxel grids. A tiny software voxel renderer (about 100 lines) turns each grid into sprites once at startup: 3/4 orthographic view with a 46° pitch, three face tones, per-voxel colour jitter, neighbour ambient occlusion and a painter's sort. The ground is a flat field of 4×4-unit voxel tiles with one-voxel height steps that show their side faces and a lit edge, and everything casts a blocky, slightly blurred sun shadow to the lower right. The result reads like a tabletop toy diorama: saturated autumn colours, chunky shapes, no outlines. The sample cast is a pumpkin-headed figure in a navy cloak and teal scarf, purple-and-cream root creatures with leafy tops, white floating ghosts and a big plum-coloured root creature with glowing cracks.

At a glance

Family3D Look · Voxel
Moodcheerful, toy-like, cozy, crisp, sunny
Best fortop-down arena and action games, farming and village sims, tactics, builder/puzzle games, casual mobile games
RendererCanvas 2D + built-in software voxel renderer (sprites baked at init)
Pixel artNo — native resolution, blits snapped to whole screen pixels
Difficulty3/10 — new assets are 3D cube grids described in code; light, AO and shadows come from the renderer
FontsBungee (numbers, titles), Chakra Petch 500/600/700 (labels)
Key colours#6da548 grass · #94949a stone · #cfa86e path · #f7842a pumpkin · #ffd84a glow · #9b54d2 creature purple · #2b2446 HUD panel

When to use it

Color palette

SwatchHexRole
Meadow Grass#6da548Main ground (shades #689f45 #6da548 #71aa4a #66a044 #75ad4d #6aa246), ~40% of the screen
Flagstone#94949aStone tiles (#94949a #8e8f96 #9a9a9d #8a8b92 #97938d), moss tiles #82905f
Sand Path#cfa86ePaths (#cfa86e #c59d63 #d7b37c #be955d), shore #dcbd86
Ploughed Field#8e5d3aField tiles, alternating rows with #7b4f31
Leaf Litter#b47643Autumn floor (#a8673e #b47643 #9e5c3a #bf8a4c #935538 #857c46 #ad6e40)
Pond Blue#4aa6dcWater → deep #3784c2, light #5cb6e6, glints #e8f8ff
Step Side#7e5536Side faces of raised tiles: grass #7e5536, leaf #70452b, field #5c3a23, stone #63646e, path #94693f, water #3a6f9e
Pumpkin#f7842aMain character's head / pumpkin props; ribs #e86f22, top #fb9036, carved rim #8a3412, stem #5b7a2a
Carved Glow#ffd84aEmissive face; hot #fff1a2, mouth #ffc23a
Night Cloak#36325fMain character's clothes; #27234a hem, #4c4787 light, shirt #efe2c4, pants #5b4232, boots #2c221e
Teal Scarf#22b8a2Main character accent; dark #178c7c
Root Purple#9b54d2Small creature top; #7a3db2, #b672e2, brows #3a1a50
Root Cream#f4e9ccSmall creature belly; #ddcfa8, roots #c9a46c, leaves #5fbe3b/#3e8f2b, eyes #ff4a2c (emissive)
Ghost White#f6faffFast creature; #dfe9f8, #b8d6f3, tail #94bfea, holes #1c2044
Plum#6c3e88Large creature top; #54306b, #81509e, roots #946a42/#6f4b2d, cracks #ff9a2a/#ffd36a, eyes #ffef8a
Gem Mint#5df0b6Small collectible gems; #b6ffe0, #2fc596; large collectibles gold #ffc43a #fff0a0 #e8932a
Pine Green#2f6e4cPines (#255a3e, #3d8659); autumn crowns orange #f08a2c, red #df4c34, yellow #f0c03e
HUD Panel#2b2446Panels and cards
HUD Edge#151024Panel border, drop edge, text shadows
HUD Gold#ffc23eTitles, big counters, emphasised numbers

Palette rules

Typography

Bungee 400 — HUD numbers, big counters, titles, card names, floating numbers. https://fonts.google.com/specimen/Bungee

.counter-big { font: 400 34px/1.05 'Bungee', 'Chakra Petch', system-ui, sans-serif; color: #ffc23e; letter-spacing: 2px;
               text-shadow: 0 2px 0 #d9741c, 0 4px 0 #a2470f, 0 6px 0 #151024; }
.title       { font: 400 64px/1 'Bungee', sans-serif; color: #ffc23e; letter-spacing: 3px;
               text-shadow: 0 3px 0 #e8801e, 0 6px 0 #c55a12, 0 9px 0 #8a3a0c, 0 12px 0 #151024, 0 20px 26px rgba(0,0,0,.45); }
.counter     { font: 400 24px/1 'Bungee', sans-serif; color: #fff; text-shadow: 0 3px 0 #151024; }

Chakra Petch 500/600/700 — labels, descriptions, hints. https://fonts.google.com/specimen/Chakra+Petch

.label { font: 700 11px/1 'Chakra Petch', system-ui, sans-serif; color: #b7a9e6; letter-spacing: 3px; }
.desc  { font: 600 15px/1.3 'Chakra Petch', system-ui, sans-serif; color: #ddd4f6; }

Text effects: titles are "extruded" with 3–4 stacked hard text-shadows stepping down 3 px each through darker oranges into #151024 — never blurred glows. Small white numbers get a 2–3 px hard shadow below in #151024. Floating in-world numbers (canvas): Bungee 7 units (emphasised: 9 units + "!"), shadow copy offset (+0.3, +1.0) in #1a1028 (emphasised #5a200a), fill #ffffff (emphasised #ffc23e).

Rendering technique

The core is a voxel grid + a sprite baker. Coordinates: voxel x = right, y = toward the viewer (front), z = up. A grid is a Uint16Array(w*d*h) of colour ids (0 = empty).

  1. Scale. K = clamp(round(screenH/360*4)/4, 1.5, 4) sprite px per world unit; PPV = max(3, round(K*1.9)) sprite px per voxel; VW = PPV/K ≈ 1.9–2 world units per voxel.
  2. Colours. C(hex, {em, jit}) registers a colour id with optional emissive flag and per-voxel jitter (default 0.045).
  3. Models. Built with box(x0,y0,z0,x1,y1,z1,c), blob(cx,cy,cz,rx,ry,rz,c,p) (super-ellipsoid; p=2 ellipsoid, p≈2.6 soft-box, p=3–4 rounded box), set(), paintFront(x,z,c) (paint the front-most voxel of a column — faces, cracks) and recolor(). A colour argument may be a function (x,y,z) => id for gradients and random speckle.
  4. Projection (prep(yaw, ppv)): rotate around z: R(x,y) = [x·cos+y·sin, −x·sin+y·cos]; screen sx = R.x·ppv, sy = (R.y·sin46° − z·cos46°)·ppv. SP = sin46° = 0.719 (ground depth factor), CP = cos46° = 0.695 (height factor). A face is visible when R(n).y·CP + n.z·SP > 0. Face quads are grown by 1 + 0.8/ppv to hide seams.
  5. Face tones (the light). Top = 1.0. Sides: tone = 0.76 − 0.15 · R(n).x. With yaw +0.6 the visible faces are top (1.0), the −x face pointing screen-left (0.884) and the +y face pointing screen-right (0.675); with yaw −0.6 it's +y left (0.845) and +x right (0.636). So the sun always comes from the upper left.
  6. Colour per face: k = jitter · tone · ao, jitter = 1 ± jit from a hash of (x,y,z,seed). AO: each solid voxel next to the open face along its two tangents subtracts 0.075; side faces at z=0 ×0.9. Tops: r·k·1.035, g·k·1.015, b·k·0.965. Sides: cool = (1−tone)·0.45; r·k·(1−cool·0.25), g·k·(1−cool·0.1), b·k·(1+cool·0.5) + cool·14. Emissive voxels ignore light: k = jitter·(top ? 1.02 : 0.95).
  7. Sort and fill. Collect exposed voxels, sort by depth R.y·CP + z·SP ascending, fill each visible face as a 4-point path. The sprite's anchor is the footprint centre at z=0.
  8. Shadows (renderShadow): for each surface voxel push its footprint quad at height z and z+1 sheared by (z·0.62, z·0.26) units, fill black, draw at alpha 0.62 with blur(0.16·PPV px), plus a 0.55-alpha contact layer for voxels with z ≤ 1.5. Drawn under figures at alpha 0.42.
  9. Bake list: main character 5 frames × 2 yaws (±0.6), each creature 4 frames × 2 yaws, collectibles/lanterns as 6–8-frame spin sets (yaw = i/n · π/2 + 0.2; a quarter turn suffices for 4-fold symmetric models), props at one fixed yaw (−0.4 to 0.6), debris cubes 1×1×1 in 6 yaws at 2K px per unit with AO off.
  10. Per frame: blit ground chunks → water glints + warm light pool under the main character → shadows of all figures/props → y-sorted props/creatures/main character → orbiting objects → projectiles → particles → floating numbers → vignette. Blits are snapped: round(x·S − ax·S/K)/S.

World and ground

The ground is a flat, stepped voxel diorama seen from above, rendered per pixel into cached chunks. It uses the same sun as everything else (upper left), so its step faces and shadows match the voxel sprites.

Characters

All characters are voxel grids at ≈ 2 world units per voxel, built from blob() bodies, box() limbs and faces painted with paintFront(). No outlines: the face tones and dark "carved" voxels separate the forms. Each character is baked twice, yaw +0.6 (facing right) and −0.6 (facing left) — never mirror the sprite, the light would flip. Each figure casts the blocky sun shadow to the lower right at alpha 0.42 (floating figures 0.22).

Main character — a pumpkin-headed figure in a navy cloak and teal scarf, a 10×9×18-voxel grid (≈ 20 × 18 × 36 world units, ~30 units tall on screen):

Small creature — a purple root creature with a cream belly and a leafy top, 10×10×15 voxels: one blob(5,5,cz,4.7,4.5,4.4) with a noisy vertical gradient: top purple (#9b54d2, 18% #b672e2 speckle, crown #7a3db2), a 50/50 mixed band, cream belly #f4e9cc/#ddcfa8. Two 1-voxel root legs #c9a46c, a leaf tuft of 3 small boxes (#5fbe3b, stem #3e8f2b) that sways ±1 voxel per frame. Face: 2 emissive red eyes #ff4a2c, a 4-wide brow and 2-voxel mouth #3a1a50. 4 frames: legs shift ±1 voxel, body lifts 1 voxel on alternate frames.

Fast creature — a white floating ghost, 11×9×15 voxels: head blob(5.5,4.5,10.2, 4.4,3.7,3.9) white #f6faff with frost speckle, a tail of 7 stacked thin discs shrinking and swaying downward (#dfe9f8 → #b8d6f3 → #94bfea), 2×3 arm slabs that bob 1 voxel. Hollow 2×2 eyes and an O-mouth in #1c2044. Floats 2.5 ± 1.5 units above the ground, drawn at alpha 0.84 with shadow alpha 0.22.

Large creature — a big plum-coloured root creature with glowing cracks, 19×16×25 voxels: big blob(9.5,8,12.5, 7.6,6.6,8.4, p=2.4) purple top (#6c3e88, speckles #54306b/#81509e) over a brown root bottom (#946a42, #6f4b2d), 4×4 stump legs with #5c3f27 feet, 3-wide arm columns with brown fists, a leaf crown (#4b8a3a/#356b2f), 3 vertical emissive crack lines alternating #ff9a2a/#ffd36a, 4 pale emissive eyes #ffef8a under a dark brow, mouth #24122c. Plus an additive orange glow (30×26 units, alpha 0.32 ± 0.12) over the chest.

Rules for all characters

Props

Props are voxel grids with the same renderer, the same ≈ 2-unit voxel and the same sun as the characters. Each is baked at one fixed yaw between −0.4 and 0.6 with its own shadow (drawn at alpha 0.40), and is y-sorted together with the characters.

Effects and particles

Effects are built from the same vocabulary as the world: little cubes, square rings and additive glows. Everything stays blocky — no round particles, no circular rings.

Atmosphere and lighting

UI

Flat dark-purple slabs that look like a chunky block: hard bevel insets, a 3 px near-black edge and a 6 px hard drop edge. Bars are segmented every 18 px and have three hard colour bands. Icons are the style's own voxel models rendered at icon size (ppv fitted to 84% of the box, floored when ≥ 2.5) with a dark offset silhouette shadow. Cards sit on a two-tone background (#3d335f top 52%, #30284c below), icon wells use a 24 px checker #251e3c/#2c2447, number keys are gold split buttons. Hovered cards lift by 8 px.

:root { --panel: #2b2446; --edge: #151024; --gold: #ffc23e; }
.panel {
  background: var(--panel); border-radius: 3px; padding: 7px 14px; color: #fff;
  font: 600 15px/1.3 'Chakra Petch', system-ui, sans-serif;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.16), inset 3px 0 0 rgba(255,255,255,.07),
              inset 0 -4px 0 rgba(0,0,0,.38), inset -3px 0 0 rgba(0,0,0,.22),
              0 0 0 3px var(--edge), 0 6px 0 3px var(--edge), 0 10px 18px rgba(10,6,24,.35);
}
.bar { width: 216px; height: 22px; background: #160f22; border-radius: 2px; overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(0,0,0,.55), 0 0 0 2px #0e0a18; }
.bar.red > i { display: block; height: 100%;            /* red bar */
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 15px, rgba(50,8,16,.8) 15px 18px),
              linear-gradient(180deg, #ffb09a 0 22%, #f0443a 22% 70%, #b3242a 70% 100%); }
.bar.mint > i { display: block; height: 100%;           /* mint progress bar */
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 15px, rgba(16,40,40,.75) 15px 18px),
              linear-gradient(180deg, #c8ffee 0 20%, #57e6b4 20% 68%, #26a888 68% 100%); }
.counter-big { font: 400 34px/1.05 'Bungee', sans-serif; color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 2px 0 #d9741c, 0 4px 0 #a2470f, 0 6px 0 var(--edge); }
.key { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 2px;
  font: 400 15px/1 'Bungee', sans-serif; color: #2b1a0c; background: linear-gradient(180deg, #ffd36a 0 50%, #f3a13a 50%);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px var(--edge); }
.overlay { background: radial-gradient(ellipse at 50% 45%, rgba(40,30,80,.35), rgba(16,10,34,.78)); }

Motion and animation

Do and don't

Do

Don't

Implementation recipe

  1. Copy starter.js's Vox, C(), prep(), renderVox(), renderShadow() and blit() into your project. Keep the constants: pitch 46°, SHX 0.62, SHY 0.26, tone formula 0.76 − 0.15·R(n).x, AO 0.075, jitter 0.045.
  2. Decide the world scale: 360 world units visible vertically; compute K and PPV = max(3, round(K·1.9)) from the screen height at startup.
  3. Register your palette with C(); mark glowing colours { em: 1 }. Give each material 2–4 shades.
  4. Write one builder function per figure model(frame) → Vox: start with blob() for bodies (p 2–2.6), box() for limbs, paintFront() for faces. Make animation by shifting legs/arms by ±1 voxel per frame (4 walk frames).
  5. At init, bake every character: frames × yaw ±0.6, plus one shadow per yaw. Bake collectibles as 8-frame spin sets, props at a fixed yaw, and 1-voxel debris cubes in 6 yaws per palette colour.
  6. Build the ground: a pure cellMat(i,j) (material + height) on a 4-unit grid, per-tile colour pick, then the per-pixel pass for steps (lit edge, lip, side band, contact shadow, west shadow, tile bevel). Render in chunks (e.g. 256 units) and cache them. Scatter mini-cube decals on a 7-unit jittered grid.
  7. Per frame: draw ground chunks → ground overlays → all shadows → y-sorted props/characters → orbiting objects → projectiles → particles → floating numbers → vignette.
  8. Add effects as cubes, sparks and squashed square rings; emissive parts get an additive radial glow.
  9. Build the HUD with the .panel / segmented bar CSS; render HUD icons with the same voxel renderer.
  10. Check the result: bright sunny diorama, no outlines, sun from the upper left, blocky shadows to the lower right.

Code

The starter kit starter.js contains the full renderer, the main character, three creature types, props, a voxel ground and a preview scene. The complete reference module is ../../js/styles/voxel.js. The essential techniques:

1. Voxel grid and model building

class Vox { // x = right, y = towards the viewer, z = up; values = colour ids (0 = empty)
  constructor(w, d, h, seed = 1) { this.w = w; this.d = d; this.h = h; this.seed = seed; this.a = new Uint16Array(w * d * h); }
  in(x, y, z) { return x >= 0 && y >= 0 && z >= 0 && x < this.w && y < this.d && z < this.h; }
  get(x, y, z) { return this.in(x, y, z) ? this.a[(z * this.d + y) * this.w + x] : 0; }
  set(x, y, z, c) { x |= 0; y |= 0; z |= 0; if (!this.in(x, y, z)) return this;
    const v = typeof c === 'function' ? c(x, y, z) : c; if (v != null && v >= 0) this.a[(z * this.d + y) * this.w + x] = v; return this; }
  box(x0, y0, z0, x1, y1, z1, c) { for (let z = z0; z <= z1; z++) for (let y = y0; y <= y1; y++) for (let x = x0; x <= x1; x++) this.set(x, y, z, c); return this; }
  blob(cx, cy, cz, rx, ry, rz, c, p = 2) { // super-ellipsoid
    for (let z = Math.floor(cz - rz); z <= Math.ceil(cz + rz); z++) for (let y = Math.floor(cy - ry); y <= Math.ceil(cy + ry); y++)
      for (let x = Math.floor(cx - rx); x <= Math.ceil(cx + rx); x++)
        if (Math.abs((x + .5 - cx) / rx) ** p + Math.abs((y + .5 - cy) / ry) ** p + Math.abs((z + .5 - cz) / rz) ** p <= 1) this.set(x, y, z, c);
    return this;
  }
  paintFront(x, z, c) { for (let y = this.d - 1; y >= 0; y--) if (this.get(x, y, z)) return this.set(x, y, z, c); return this; }
}
// Example: small creature body with a noisy purple-over-cream gradient (ids come from C('#9b54d2') etc.)
// m.blob(5, 5, 6.3, 4.7, 4.5, 4.4, (x, y, z) => { const t = z + .5 - 6.3 + (rnd3(x, y, z, 5) - .5) * 1.6;
//   return t > 1.6 ? PURPLE : t > 0.4 ? (rnd3(x, y, z, 3) < .5 ? PURPLE : CREAM) : CREAM; });

2. Projection and face tones

const PITCH = 46 * Math.PI / 180, SP = Math.sin(PITCH), CP = Math.cos(PITCH);
const FACES = [[1,0,0], [-1,0,0], [0,1,0], [0,-1,0], [0,0,1], [0,0,-1]];
function prep(yaw, ppv) {
  const c = Math.cos(yaw), s = Math.sin(yaw), R = (x, y) => [x * c + y * s, -x * s + y * c];
  const proj = (x, y, z) => { const r = R(x, y); return [r[0] * ppv, (r[1] * SP - z * CP) * ppv]; };
  const ex = 1 + 0.8 / ppv, faces = [];
  for (const n of FACES) {
    const rn = R(n[0], n[1]);
    if (rn[1] * CP + n[2] * SP <= 1e-3) continue;              // facing away from the camera
    const a = n[0] ? 0 : n[1] ? 1 : 2, b = (a + 1) % 3, cc = (a + 2) % 3, fc = proj(n[0] / 2, n[1] / 2, n[2] / 2), pts = [];
    for (const [u, v] of [[-.5, -.5], [.5, -.5], [.5, .5], [-.5, .5]]) {
      const p = [0, 0, 0]; p[a] = n[a] / 2; p[b] = u; p[cc] = v; const q = proj(p[0], p[1], p[2]);
      pts.push(fc[0] + (q[0] - fc[0]) * ex, fc[1] + (q[1] - fc[1]) * ex);   // grown 0.8 px: no seams
    }
    const t1 = [0, 0, 0], t2 = [0, 0, 0]; t1[b] = 1; t2[cc] = 1;
    faces.push({ n, pts, t1, t2, top: n[2] === 1, tone: n[2] === 1 ? 1 : 0.76 - 0.15 * rn[0] }); // sun from screen-left
  }
  return { R, faces };
}

3. Shading one face (inside the sorted voxel loop of renderVox; j = per-voxel jitter)

function shadeFace(col, f, m, x, y, z, j) {
  const cc = col.c;                                       // [r, g, b]
  if (col.em) { const k = j * (f.top ? 1.02 : 0.95); return [cc[0] * k, cc[1] * k, cc[2] * k]; }
  const nx = x + f.n[0], ny = y + f.n[1], nz = z + f.n[2];
  let ao = 1;
  for (const t of [f.t1, f.t2]) { if (m.get(nx + t[0], ny + t[1], nz + t[2])) ao -= 0.075; if (m.get(nx - t[0], ny - t[1], nz - t[2])) ao -= 0.075; }
  if (!f.top && z === 0) ao *= 0.9;
  const k = j * f.tone * ao;
  if (f.top) return [cc[0] * k * 1.035, cc[1] * k * 1.015, cc[2] * k * 0.965];   // warm top
  const cool = (1 - f.tone) * 0.45;                                              // cool sides
  return [cc[0] * k * (1 - cool * 0.25), cc[1] * k * (1 - cool * 0.1), cc[2] * k * (1 + cool * 0.5) + cool * 14];
}
// j = 1 + (hash(x, y, z, model.seed) - 0.5) * 2 * col.jit   (jit 0.045 by default)
// draw order: sort exposed voxels by  R(x,y)[1] * CP + (z + 0.5) * SP  ascending, then fill each face quad.

4. Ground step shading (per pixel; cm = this tile, n = tile to the north, fx/fy = position in the 4-unit tile)

const SIDEC = [[126,85,54], [112,69,43], [92,58,35], [99,100,110], [148,105,63], [58,111,158]]; // grass, leaf, field, stone, path, water
const LIP = [1, 1, 0, 0, 0, 0];
function groundPixel(cm, n, west, fx, fy, edge) {
  let [r, g, b] = cm.c, m = 1;
  if (n.h > cm.h) {
    const band = Math.min(3.5, (n.h - cm.h) * 1.9);
    if (fy < band) {
      if (fy < edge) return [n.c[0] * 1.14 + 6, n.c[1] * 1.14 + 6, n.c[2] * 1.12 + 6];      // lit edge
      if (LIP[n.mat] && fy < 1.05) return [n.c[0] * .8, n.c[1] * .8, n.c[2] * .82];        // grass lip
      const s = SIDEC[n.mat], k = (0.98 - 0.2 * fy / band) * n.sj;                         // side face
      return [s[0] * k, s[1] * k, s[2] * k];
    }
    if (fy < band + 0.9) m *= 0.84;                                                          // contact shadow
  }
  if (west.h > cm.h) m *= fx < 1.5 ? 0.8 : fx < 2 ? 0.9 : 1;                                 // sun from the west
  if (fy > 4 - edge) m *= 0.95; else if (fy < edge) m *= 1.035;                              // tile bevel
  if (fx > 4 - edge) m *= 0.965; else if (fx < edge) m *= 1.015;
  return [r * m, g * m, b * m];
}

5. Square ground ring and cube debris

const SP = Math.sin(46 * Math.PI / 180);
function drawRing(ctx, x, y, r0, r1, k, color, lw) {          // k = remaining life 1 -> 0
  const t = 1 - k, r = r0 + (r1 - r0) * (1 - (1 - t) * (1 - t));
  ctx.globalAlpha = k * 0.85; ctx.strokeStyle = color; ctx.lineWidth = lw * k + 0.4;
  ctx.strokeRect(x - r, y - r * SP, r * 2, r * 2 * SP); ctx.globalAlpha = 1;
}
// debris: cubeFrames = 6 renderVox() calls of a 1x1x1 grid at yaw k/6 * PI/2 (AO off);
// per particle: z += vz*dt; vz -= 320*dt; drag 1.4; frame = floor(rot * 2) mod 6; drawn at (x, y - z).

Adapting it to your project

Performance notes

Copy-paste prompt

Use the Voxel Cube World art style for my project: a MagicaVoxel look in Canvas 2D, no image assets.
- Every character, prop, collectible, particle and HUD icon is a 3D voxel grid (Uint16Array, x right, y toward viewer, z up)
  built with box(), blob() (super-ellipsoid) and paintFront() for faces. One voxel = ~2 world units; 360 units on screen vertically.
- At init bake each grid to sprites with a software renderer: rotate by yaw (characters ±0.6 rad, 2 facings, never mirror),
  orthographic projection with 46° pitch (sx = R.x*ppv, sy = (R.y*sin46 - z*cos46)*ppv), painter's sort by R.y*cos46 + z*sin46.
- Face tones: top 1.0 (warmed), sides 0.76 - 0.15*R(n).x (sun from the upper left), sides cooled toward blue,
  per-voxel jitter ±4.5%, AO -7.5% per solid neighbour around each face. Emissive voxels (glowing faces) skip shading.
- No outlines ever. Carved faces get a dark rim of voxels. Glow = additive radial sprite.
- Blocky shadows: voxel footprints sheared (0.62, 0.26) per unit height to the lower right, blurred, alpha 0.42.
- Ground: flat 4x4-unit voxel tiles (grass #6da548, stone #94949a, path #cfa86e, field #8e5d3a, water #4aa6dc), 2-4 shades each,
  heights -1..2; a higher tile shows a 1.9-unit side face band + lit edge, small mini-cube decals (tufts, flowers, pebbles).
- Props (autumn trees, pines, pumpkins, hay, crates, lamp posts) use the same voxel size and sun, one fixed yaw each.
- Walk cycles: 4 frames made by shifting legs ±1 voxel and lifting the body 1 voxel. Collectibles spin through 8 baked yaws.
- Effects: tumbling 1-voxel cube debris in the object's colours, squashed SQUARE rings, white silhouette impact flash.
- Bright saturated autumn palette, purple radial vignette. HUD: #2b2446 slabs with 3px #151024 edge + hard bevel,
  segmented bars with 3 hard colour bands, Bungee numbers with stacked hard drop shadows, Chakra Petch labels.