@open-adventure/core
v1.0.2
Published
Open Adventure game engine — platform-agnostic core
Readme
@open-adventure/core
Platform-agnostic game engine for Open Adventure — a JavaScript/TypeScript port of Open Adventure, itself a forward-port of Colossal Cave Adventure 2.5 (Crowther & Woods, 1995).
This package contains the engine only: zero node:* imports, no I/O, no terminal handling. It is consumed by @open-adventure/cli for terminal play and can also be embedded directly in browser hosts.
Install
npm install @open-adventure/coreUsage
The package exports a host-driven runGame() entry point along with factories and pure save helpers (serializeGame, deserializeGame, summarizeSave). See the project README for usage examples, including a browser hosting walkthrough.
License
BSD 2-Clause. This project is a JavaScript port of Open Adventure (originally in C), licensed under the BSD 2-Clause License.
