A lightweight 2D game engine for the browser, built with TypeScript and the Web Audio / Canvas APIs.
| Module | Description |
|---|---|
canvas |
Fullscreen canvas setup with resize handling |
update |
Fixed or variable timestep game loop |
assets |
Image loading and tinting |
input/keyboard |
Per-frame keyboard state |
input/pointer |
Per-frame pointer/mouse state with canvas scaling |
validate |
JSON validation helpers and error collector |
npm install github:starweb-libs/engineMIT License - see LICENSE for details.