Skip to content

feat(web): generative ASCII texture pipeline (ADR 0009) - #13

Merged
teceer merged 1 commit into
mainfrom
ascii-texture-generation-system
Aug 6, 2026
Merged

teceer merged 1 commit into
mainfrom
ascii-texture-generation-system

Conversation

@teceer

@teceer teceer commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • ADR 0009: textures/sprites are plain-text glyph grids (palette header + grid/frames), not binary images — an agent can author or edit one directly, and it diffs like code.
  • web/src/textures.ts — the one parser/rasterizer (parseTexture → frameToCanvas/texturesFromParsed), pure enough to unit-test under bun test without a browser.
  • Building roofs in web/src/main.ts now fill with a shipped texture (roof.shingle.txt) instead of a flat color, as proof the pipeline works end to end.
  • web/CLAUDE.md (new) documents the format for an agent about to author a texture.

Test plan

  • bun test — 11/11 (parser validation cases + every shipped texture file parses)
  • tsc --noEmit — clean (after make -C services/sim-core wasm)
  • biome check — clean on touched files
  • vite build — succeeds
  • Verified in a real running browser (headless Chromium against the local dev server, connected to a live gateway) — screenshot confirms the shingle texture renders on building roofs, no console errors

🤖 Generated with Claude Code

…ADR 0009)

Textures are plain-text glyph grids with a palette header, parsed once in
web/src/textures.ts and rasterized to pixi Textures at render time — an
agent can author or edit one without touching a binary asset. Wires the
building roof fill in main.ts to the first shipped texture as proof of
the pipeline, with format spec, parser tests, and web/CLAUDE.md for
agents authoring new textures.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@teceer
teceer merged commit 9b675f9 into main Aug 6, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant