miwale

Terminal ASCII — Game Art Style Spec

The world drawn entirely in text glyphs on a green phosphor CRT: one fixed character grid, glowing multi-glyph figures, scanlines.

Everything on screen is a character in one fixed grid. A cell is 6 × 10 world units, so the 360-unit-tall view is exactly 36 text rows. The ground is a field of dim glyphs – sparse ticks for meadows, clubs and spades for forests, ~ and ≈ for water, ░▒▓█ density ramps for hills, dotted amber dirt roads and rogue-style rooms with # walls around dotted floors. Figures are small multi-glyph sprites on opaque cell plates that erase the ground beneath them and glow like hot phosphor: an @-headed adventurer in amber standing on a blinking cursor, little (ö) critters, flickering (*) spirits trailing glyph tails, and a red block-letter brute made of half blocks. Effects are glyph bursts, rings of characters, expanding box-drawing frames and typed-out words. The whole picture sits behind scanlines, a breathing flicker, a rolling refresh band and a barrel vignette with rounded glass corners. Phosphor green carries about 90 % of the screen; amber marks the main character and every light; cyan and red are signals, used sparingly.

At a glance

FamilyText Mode · CRT Phosphor
Moodnostalgic, nocturnal, hacker, minimal, eerie
Best forgrid-based dungeon crawlers, hacker/cyber themes, minimalist action or puzzle games, rapid prototypes with no art budget, retro computing tributes
RendererCanvas 2D, procedural; glyph atlas baked per cell size, cells blitted
Pixel artno – full display resolution, but every glyph snaps to the 6 × 10-unit cell grid
Complexity3/10: new assets are two short text grids; the engine (atlas + character ROM) is written once
FontsVT323 (world glyphs, numbers, titles), IBM Plex Mono (small body text) – Google Fonts
Key colours#020a05 screen · #1a6331 / #2a994b phosphor · #4ddb76 bright · #ffb238 amber · #5cefff cyan · #ff4257 red

When to use it

Color palette

Every family is a brightness ramp (brightest first in code). Fading means stepping down the ramp, never alpha.

SwatchHexRole
Screen black bg#020a05background of every cell, HUD panels
Plate plate#010502opaque plates behind figures/props/collectibles/text, dark glyph of inverse cells
Phosphor deep g0#0a2613solid █ hill cores
Phosphor dim g1#113d20most grass ticks, forest floor dots, ▓ hill shade
Phosphor low g2#1a6331meadow ticks, forest glyphs, ░ ▒ hill edges, room floors, prop shade
Phosphor mid g3#2a994broom walls, prop bodies, HUD frames and labels
Phosphor bright g4#4ddb76small-creature shells, tree tips, HUD text and bars
Phosphor hot g5#a3ffbdbig HUD numbers, card titles, numbers
Phosphor white g6#e6fff0small-creature eye, hottest numbers
Amber deep a0#3d2405dim road dots, sand
Amber dark a1#7a4a0eroad dots, shore sand, wood (trunks, frames, logs), empty bar segments
Amber a2#c97f19main character's torso and legs, doors, chest, bridges
Amber bright a3#ffb238main character's arms, projectile trail, spinner brackets, PWR bar, cursor
Amber light a4#ffd98elarge creature's teeth, fire sparks, bar text
Amber white a5#fff3damain character's @ head, projectile head, spinner core
Cyan dim c1#0f5c62water ~ ≈
Cyan c2#1fb0b9spirit brackets, water crests, glyph tails
Cyan bright c3#5cefffcollectibles, LEDs, stairs, glow-up frame and text
Cyan white c4#ccfbffspirit core, collectible blink
Red r2#ff4257large creature, x eyes, error text and scramble
Red light r3#ff8a96large creature's horn tips, scramble highlights
Red dark r1#86131flarge creature's feet, rare ♦ flowers
Water cells#031a1e / #042229cell background of shallow / deep water
Region cells#071f0f · #04170c · #0e0d05cell background of rooms · dense forest · roads and bridges

Palette rules

Typography

Rendering technique

The shared pipeline:

  1. Character grid. Cell = 6 × 10 world units. A world point maps to cell (floor(x / 6), floor(y / 10)); screen position of a cell = round(col · 6 · S + ox), round(row · 10 · S + oy) with S = screenH / 360.
  2. Character ROM. Block elements (█ ▀ ▄ ▌ ▐ ■ ▪ ▁), shades (░ ▒ ▓ as 25 / 50 / 75 % dot lattices with dot size max(1, round(cellH / 12))), box drawing (─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ and the double set ═ ║ ╔ ╗ ╚ ╝, stroke max(1, round(0.15 · cellW))) and seven bitmap symbols the font lacks (♣ ♠ ♥ ◆ ◇ ≈ ▲ ☼ ↑ ♦, 7-column pixel grids fitted into 90 % × 72 % of the cell) are drawn procedurally with rounded rects. Everything else is VT323 text.
  3. Glyph atlas. One atlas per cell pixel size. A slot is one (glyph, colour, mode) on an 8 × 8-slot page (small pages keep re-uploads cheap when a slot is added); slot size = cell + 2 × pad (pad = 0.9 × cell height for glowing modes). Modes: plain (ground), glow (wide shadow blur 0.9 × cellH at 70 % alpha + tight 0.32 × cellH + crisp double-struck), inverse (lit cell with its own glow, glyph in plate black), soft (single 0.3 × blur). The common slots are baked in one warm-up on the first frame at a new cell size; anything else is baked on first use, then reused forever.
  4. Ground chunks (240 units = 40 × 24 cells) evaluate one material + glyph + colour + background per cell from noise, including a one-cell margin, fill the backgrounds, then blit plain atlas glyphs. Built with a generator in row batches and cached.
  5. Sprites (figures and props) are text grids: glyph rows + colour-key rows. They are baked once per cell size into one canvas (plates → wide bloom → tight halo → crisp glyphs) and drawn with one drawImage. Transient states (appear, scramble, dissolve) are drawn cell by cell from the atlas instead.
  6. Draw order: ground chunks → water crests and light pools → collectibles → shadows (only the main character's cursor and lamp glow) → y-sorted props and figures → orbiting spinners → projectiles → particles → numbers → row tearing → scanlines, refresh band, flicker, vignette.

World and ground

One glyph per cell, chosen by material in this priority order:

The ground stays dim and at most half filled – the figures own the brightness.

Characters

Every figure is a text grid: glyph rows + colour-key rows (. = no cell, ground stays visible; K = plate without glyph). Each used cell gets an opaque #010502 plate, then the glyphs are baked with a wide bloom (shadow blur 1.0 × cell height at 75 % alpha), a tight halo (0.3 ×) and a crisp double-struck pass. Facing left mirrors the rows and swaps paired glyphs (/ ↔ \, ( ↔ ), < ↔ >, [ ↔ ], { ↔ }, ▌ ↔ ▐).

Main character – the @ adventurer, 3 × 3 cells (18 × 30 units)

 @        H  = #fff3da  white-amber head
/█\       A a A  arms #ffb238, torso #c97f19
/ \       a K a  legs #c97f19 (gap = plate only)

Small creature – a glyph critter, 3 × 2 cells

(ö)   g W g    shell #4ddb76, eye #e6fff0        {x}   g R g   red eyes #ff4257
/"\   d g d    legs #2a994b / underside #4ddb76  / \   d K d

Two variants (55 % / 45 %), two leg frames (/"\ ↔ \"/, / \ ↔ | |) at anim × 0.8.

Fast creature – a flickering spirit, 3 × 1 cells

(*) {+} (×) <*> {x} (+) cycling at 11 fps, brackets #1fb0b9, core #ccfbff. It never mirrors. Behind it the last four cells it occupied show + · · . fading through the cyan ramp.

Large creature – a block-letter brute, 7 × 4 cells (42 × 40 units)

▀▄   ▄▀    horn tips #ff8a96, horns #ff4257
▄█O█O█▄    body #ff4257, eyes O #fff3da
█▀vvv▀█    teeth v #ffd98e
▀ █ █ ▀    feet #86131f   (frame 2:  █ ▀ █ )

Two frames of alternating feet at anim × 0.5.

States shared by all creatures

Props

Same text-grid sprites with plates, snapped to cells and y-sorted with the figures. Only light-emitting keys get bloom; stone, wood and foliage are drawn without glow.

PropGlyphsColours
Pine, 5 × 6stacked ^ tiers (1, 3, 5, 3, 5) and a ║ trunktip #a3ffbd (glowing), #4ddb76 / #2a994b / #1a6331, trunk #7a4a0e
Oak, 6 × 4 .&&. (&&&&) (&%&&) ` `#4ddb76 / #2a994b, trunk #7a4a0e
Bush, 4 × 2 ,, (&&)#2a994b
Boulder, 6 × 3 .--. (.░▒▓) ` ----´ ``#2a994b rim, #1a6331 / #113d20 shading
Monolith, 3 × 5▲ ▐■▌ ▐▒▌ ▐▒▌ ▄█▄#1a6331, LED ■ #5cefff (2 on, 1 off at 1.4 Hz)
Signpost, 5 × 4┌───┐ │>_ │ └─┬─┘ │ wood #7a4a0e, prompt #ffb238, blinking _ #ffd98e
Ruin wall# ## / #### or ## / ### / ####2a994b
Campfire, 3 × 3sparks , ' (moving), )▲( / (▲), logs =#=flame #ffb238, core #fff3da, sparks #ffd98e, logs #7a4a0e
Stairs>#5cefff, pulsing
Chest[=]#c97f19 / #ffb238

Effects and particles

Every particle is one glyph on the cell grid – no shapes, no sprites.

Atmosphere and lighting

UI

The HUD is a set of terminal windows.

Motion and animation

Do and don't

Do

Don't

Implementation recipe

  1. Pick the cell: 6 × 10 world units (aspect 0.6, like a monospace font). Screen height = 36 rows.
  2. Load VT323; until it is loaded use a monospace fallback at 0.9 × cell height, then clear the atlas and repaint cached ground once.
  3. Write paintGlyph(ctx, ch, x, y, w, h, bold): procedural blocks/shades/box lines/bitmap symbols, otherwise fillText at 1.25 × h, baseline 0.79 h, double strike for bold.
  4. Build the atlas: slots keyed by mode + glyph + colour, baked on first use with shadow blur for glow.
  5. Generate the ground per cell (material → glyph → colour → background) in chunks of 40 × 24 cells, with a one-cell margin.
  6. Define figures and props as glyph rows + colour-key rows; bake each state once (plates, bloom, halo, crisp).
  7. Draw everything at round(col · cellW + ox), feet in the cell that holds y.
  8. Implement appear (type-in), flash (inverse), dissolve (drift + ramp) cell by cell from the atlas.
  9. Effects = single glyph particles, glyph rings, box frames and typed text.
  10. Finish with scanlines, flicker, refresh band and a cached vignette canvas.

Code

The glyph painter with the procedural character ROM and double-strike bold:

const ROM = { '♣': ['..xxx..', '..xxx..', 'xx.x.xx', 'xxxxxxx', 'xx.x.xx', '...x...', '..xxx..'] };
const rect = (g, x0, y0, x1, y1) => { const a = Math.round(x0), b = Math.round(y0); g.fillRect(a, b, Math.max(1, Math.round(x1) - a), Math.max(1, Math.round(y1) - b)); };
function paintGlyph(g, ch, x, y, w, h, bold) {
  if (ch === ' ') return;
  if (ch === '█') return rect(g, x, y, x + w, y + h);
  if (ch === '▀') return rect(g, x, y, x + w, y + h / 2);
  if (ch === '▄') return rect(g, x, y + h / 2, x + w, y + h);
  const shade = { '░': 1, '▒': 2, '▓': 3 }[ch];
  if (shade) {                                     // 25 / 50 / 75 % dot lattices
    const d = Math.max(1, Math.round(h / 12));
    for (let j = 0; j * d < h; j++) for (let i = 0; i * d < w; i++) {
      const on = shade === 1 ? i % 2 === 0 && j % 2 === 0 : shade === 2 ? ((i + j) & 1) === 0 : !(i % 2 && j % 2);
      if (on) g.fillRect(Math.round(x + i * d), Math.round(y + j * d), d, d);
    }
    return;
  }
  const rom = ROM[ch];
  if (rom) {                                       // bitmap symbol fitted into the glyph box
    const n = rom.length, ps = Math.min((w * 0.9) / 7, (h * 0.72) / Math.max(6, n));
    const bx = x + (w - ps * 7) / 2, by = y + h * 0.8 - ps * n;
    for (let j = 0; j < n; j++) for (let i = 0; i < 7; i++) if (rom[j][i] === 'x') rect(g, bx + i * ps, by + j * ps, bx + (i + 1) * ps, by + (j + 1) * ps);
    return;
  }
  g.font = Math.round(h * 1.25) + 'px "VT323", monospace';
  g.textAlign = 'center'; g.textBaseline = 'alphabetic';
  g.fillText(ch, x + w / 2, y + h * 0.79);
  if (bold) g.fillText(ch, x + w / 2 + Math.max(1, w * 0.1), y + h * 0.79);   // double strike
}

The glyph atlas – bake on first use, blit forever:

function makeAtlas(cw, ch) {
  const pad = Math.ceil(ch * 0.9), sw = Math.ceil(cw) + pad * 2, sh = Math.ceil(ch) + pad * 2, per = 16;
  const page = document.createElement('canvas'); page.width = sw * per; page.height = sh * per;
  const g = page.getContext('2d'), map = new Map(); let n = 0;
  function get(glyph, col, glow) {
    const key = (glow ? 1 : 0) + glyph + col;
    let s = map.get(key);
    if (s) return s;
    const k = n++, sx = (k % per) * sw, sy = Math.floor(k / per) * sh, x = sx + pad, y = sy + pad;
    g.save(); g.beginPath(); g.rect(sx, sy, sw, sh); g.clip(); g.fillStyle = col;
    if (glow) {
      g.shadowColor = col;
      g.globalAlpha = 0.7; g.shadowBlur = ch * 0.9; paintGlyph(g, glyph, x, y, cw, ch, true);
      g.globalAlpha = 1; g.shadowBlur = ch * 0.32; paintGlyph(g, glyph, x, y, cw, ch, true);
      g.shadowBlur = 0;
    }
    paintGlyph(g, glyph, x, y, cw, ch, glow);
    g.restore();
    map.set(key, (s = { sx, sy }));
    return s;
  }
  return { get, draw(ctx, glyph, col, glow, px, py) { const s = get(glyph, col, glow); ctx.drawImage(page, s.sx, s.sy, sw, sh, px - pad, py - pad, sw, sh); } };
}

A multi-glyph sprite on opaque plates, snapped to the grid by its feet:

const HERO = { g: [' @ ', '/█\\', '/ \\'], k: ['.H.', 'AaA', 'aKa'] };       // '.' = no cell, 'K' = plate only
const KEY = { H: '#fff3da', A: '#ffb238', a: '#c97f19' };
function bakeSprite(def, cw, ch) {
  const w = def.g[0].length, h = def.g.length, pad = Math.ceil(ch * 0.9);
  const c = document.createElement('canvas'); c.width = Math.ceil(w * cw) + pad * 2; c.height = Math.ceil(h * ch) + pad * 2;
  const g = c.getContext('2d'), X = (i) => pad + Math.round(i * cw), Y = (j) => pad + Math.round(j * ch);
  g.fillStyle = '#010502';
  for (let j = 0; j < h; j++) for (let i = 0; i < w; i++) if (def.k[j][i] !== '.') g.fillRect(X(i), Y(j), X(i + 1) - X(i), Y(j + 1) - Y(j));
  for (let pass = 0; pass < 3; pass++) {                     // wide bloom, tight halo, crisp
    g.save(); if (pass === 0) g.globalAlpha = 0.75;
    for (let j = 0; j < h; j++) for (let i = 0; i < w; i++) {
      const k = def.k[j][i], glyph = def.g[j][i];
      if (k === '.' || k === 'K' || glyph === ' ') continue;
      g.fillStyle = KEY[k];
      if (pass < 2) { g.shadowColor = KEY[k]; g.shadowBlur = ch * (pass === 0 ? 1 : 0.3); }
      paintGlyph(g, glyph, X(i), Y(j), X(i + 1) - X(i), Y(j + 1) - Y(j), true);
    }
    g.restore();
  }
  return { c, pad, w, h };
}
function putSprite(ctx, s, x, y, S, ox, oy) {               // world (x, y) = feet; 6 × 10-unit cells
  const left = Math.round(x / 6 - s.w / 2), top = Math.floor(y / 10) - s.h + 1;
  ctx.drawImage(s.c, Math.round(left * 6 * S + ox) - s.pad, Math.round(top * 10 * S + oy) - s.pad);
}

The dissolve – each cell drifts and decays down the shade ramp:

function drawDissolve(atlas, def, left, top, t, seed, cellPx) {   // t: 0 → 1
  const ramp = ['▓', '▒', '░', '·', '.'], fam = ['#e6fff0', '#a3ffbd', '#4ddb76', '#2a994b', '#1a6331'];
  for (let j = 0; j < def.g.length; j++) for (let i = 0; i < def.g[j].length; i++) {
    if (def.k[j][i] === '.' || def.g[j][i] === ' ') continue;
    const h1 = hash(i + j * 9, seed, 3), h2 = hash(i * 5 + j, seed, 4);
    if (t > 0.45 + h1 * 0.55) continue;                       // this cell is gone
    const a = h2 * Math.PI * 2, d = t * (1.5 + h1 * 2.5);
    const dc = Math.round(Math.cos(a) * d), dr = Math.round(Math.sin(a) * d * 0.6 - t * 1.2);
    const glyph = t < 0.18 ? def.g[j][i] : ramp[Math.min(4, Math.floor((t - 0.18) * 7 + h1 * 1.5))];
    atlas.draw(ctx, glyph, fam[Math.min(4, Math.floor(t * 3) + (t < 0.18 ? 0 : 1))], true,
      (left + i + dc) * cellPx.w, (top + j + dr) * cellPx.h);
  }
}

Adapting it to your project

Performance notes

Copy-paste prompt

Use the Terminal ASCII art style for my project:
- Render everything as text glyphs on one fixed character grid: cell = 6 x 10 world units (screen height = 36 rows). Snap every glyph to whole cells.
- Bake glyphs once into a glyph atlas (glyph + colour + mode: plain / glow / inverse) and blit cells; draw block, shade (░▒▓ as 25/50/75 % dot lattices) and box-drawing glyphs procedurally.
- Font: VT323 at 1.25 x cell height, double-struck for bold; IBM Plex Mono for small UI text.
- Palette: screen #020a05; phosphor green ramp #0a2613 #113d20 #1a6331 #2a994b #4ddb76 #a3ffbd #e6fff0 (~90 % of the screen); amber #7a4a0e #c97f19 #ffb238 #ffd98e #fff3da for the main character and lights; cyan #0f5c62 #1fb0b9 #5cefff and red #ff4257 only as signals.
- Ground: sparse dim ticks . , ' " for meadows, ♣ ♠ ^ forests, ~ ≈ water on dark teal cells, ░▒▓█ hill ramps, dotted amber roads, rooms with # walls, . floors and + doors. Keep it dim and at most half filled.
- Figures are small multi-glyph sprites on opaque black cell plates with a baked phosphor glow: a 3x3 @-headed adventurer in amber on a blinking ▁ cursor, (ö) critters, flickering (*) spirits with glyph tails, a 7x4 red half-block brute.
- Flash = inverse video. Appear = cells type in through scrambling noise glyphs. Dissolve = cells drift apart and decay ▓ ▒ ░ · .
- Effects: single-glyph bursts, rings of * on the grid, expanding ┌─┐ frames, typed-out words that scramble away, a | / - \ spinner, a * projectile with a direction-glyph trail.
- Atmosphere: scanlines, 1-6 % flicker, rolling refresh band, barrel vignette with rounded glass corners, row tearing on impacts. No shadows, no full-screen blur.
- UI: terminal windows (2 px #2a994b frame, glow, scanline texture, title cut into the border), block-segment bars, > prompts and blinking █ cursors.