Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.54 KB

File metadata and controls

58 lines (41 loc) · 2.54 KB

BLIT386

A palette-first WebGPU retro engine for TypeScript, inspired by RetroBlit by Martin Cietwierkowski (@daafu). Draw with palette indices instead of RGBA pixels, animate with palette cycling and fades, and ship authentic VGA-era effects on modern GPUs – with an automatic Canvas 2D fallback when WebGPU is unavailable.

Read the documentation at blit386.dev.

Start a game in seconds

npm create blit386@latest my-game

Works with npm, pnpm, yarn, or bun. You get a ready-to-run Vite project, a commented starter game, and local docs.

BLIT386 logo

Projects

blit386/blit386 is a single monorepo holding everything below. The engine anchors it; the other packages release in lockstep with it.

Why BLIT386?

  • True indexed rendering – primitives and sprites write palette indices, not RGBA.
  • Palette effects built-in – cycling, fade, flash, and swap run per frame, no per-sprite rewrites.
  • Retro palette presets – VGA, CGA, C64, Game Boy, PICO-8, and NES.
  • Post-process effects – a two-tier chain with bundled CRT presets.
  • Full input – pointer, keyboard, and gamepad, plus a fixed-timestep loop and frame capture.

Community

Authors

License

Licensed under ISC.