Skip to content
@blit386

BLIT386

Palette-first WebGPU retro engine for TypeScript. Draw with palette indices, animate with cycling and fades, with automatic Canvas 2D fallback.

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.

Pinned Loading

  1. blit386 blit386 Public

    A palette-first WebGPU retro engine for TypeScript, inspired by RetroBlit.

    TypeScript 3

  2. awesome-blit386 awesome-blit386 Public

    A curated list of great BLIT386 resources – the palette-first WebGPU retro engine for the web.

Repositories

Showing 6 of 6 repositories

Top languages

Loading…

Most used topics

Loading…