create-webpunk
v0.2.91
Published
Scaffold a new webpunk.ts game project.
Maintainers
Readme
create-webpunk
Scaffold a new webpunk.ts game project.
npm create webpunk@latest my-game
# or
npx create-webpunk my-gameThen:
cd my-game
npm install
npm run devThis creates a ready-to-run Vite + TypeScript project that depends on the
compiled webpunk.ts framework, with a title scene, a gameplay scene stub, and
input actions already wired up.
Install the framework on its own
If you just want the engine in an existing project instead of scaffolding a new one:
npm install webpunk.tsimport { Engine, CanvasRenderer } from 'webpunk.ts'