@opendungeon/engine-core
v0.1.2
Published
Core engine logic for OpenDungeon RPG framework
Downloads
215
Readme
@opendungeon/engine-core
The core gameplay engine for OpenDungeon, responsible for managing the state, actions, and events of the game.
Features
- Dungeon Master: Orchestrates game logic and narrative progression.
- Event Compressor: Aggregates game events for optimized transmission.
- Lore Extractor: Extracts relevant information from gameplay for persistent world memory.
Installation
npm install @opendungeon/engine-coreUsage
import { DungeonMaster } from '@opendungeon/engine-core';
// Initialize the core engine
const dm = new DungeonMaster(config);
const newState = await dm.processAction(currentState, action);