create-blit386
v1.3.0
Published
Scaffold a new BLIT386 game in seconds.
Maintainers
Readme
create-blit386
Scaffold a new BLIT386 game in seconds.
Usage
npm create blit386@latest my-game
cd my-game
npm run devThe scaffolder installs the dependencies for you, so there is no npm install step. (If you passed --no-install, run
your install command first.)
Works with npm, pnpm, yarn, or bun – the scaffolder uses whichever you ran it with.
What you get
- A small, complete starter game (Catcher) with a comment on every line – JavaScript by default, or TypeScript with
--ts. - A ready-to-run Vite setup:
index.html,src/game.js(orsrc/game.ts), and a dev server. - Local guides (
docs/) and anAGENTS.mdso you – or an AI assistant – can learn the engine without leaving the project. - The
blithelper CLI (npx blit run,npx blit doctor,npx blit upgrade,npx blit migrate,npx blit agents sync), provided by@blit386/kit. It is a project-local bin, so invoke it throughnpx.
If you pick an AI assistant in the wizard, the scaffolder also generates its config (Claude: CLAUDE.md + .claude/
including settings.json hooks; Cursor: .cursor/ including hooks.json) from the kit's canonical content, and
npx blit agents sync keeps it current. Did not pick one at the start? Run npx blit agents add claude or
npx blit agents add cursor later to set it up.
Options
npm create blit386@latest my-game -- --yes # skip the prompts (JavaScript, no AI files, no CI)
npm create blit386@latest my-game -- --ts # use the TypeScript starter instead of JavaScript
npm create blit386@latest my-game -- --no-install # do not install dependencies
npm create blit386@latest my-game -- --no-git # do not initialize a git repositoryWithout an interactive terminal – an AI assistant or a CI job running the command – there is nobody to answer the
prompts, so the scaffolder behaves as if you passed --yes and says so once. --ts still applies. Pass --yes
yourself to silence the notice.
Requirements
- Node.js 22.18.0 or newer.
- A modern browser. WebGPU is used when available; otherwise the engine falls back to Canvas 2D automatically, so the game always runs.
Learn more
- Docs: blit386.dev
- Source and issues: github.com/blit386/create-blit386
Community
License
ISC. Copyright (c) Václav Vančura. See LICENSE.
