Documentation

Get started building interactive fiction with Sharpee.

Quick Example

Create a room and add an item:

import { WorldModel } from '@sharpee/world-model';
const world = new WorldModel();
const room = world.createEntity('kitchen', 'room');
room.name = 'Kitchen';
room.description = 'A warm kitchen with copper pots hanging from the ceiling.';
const knife = world.createEntity('knife', 'object');
knife.name = 'bread knife';
world.moveEntity(knife.id, room.id);

Sections