@react-story-rich/core

2.0.0-beta.7 • Public • Published

@react-story-rich helps to create narrative games with javascript basics.

Contrary to Ink or Twine, you don't have to learn a "proxy" language to get started. On the other hand, the library remains sufficiently low level not to restrict itself in the possibilities. This includes:

  • A tree API to parse simple story definitions in JS or even in JSON
  • A navigation API to navigate through a Story Node to another
  • A history reducer to keep tracks of user actions and render a timeline
  • Components & hooks to handle most common interactions

Example of a CardElement from @react-story-rich

Installation

npm install @react-story-rich/core -S
// or
yarn add @react-story-rich/core

Getting started

With @react-story-rich, you can start with a template based on create-react-app already including the following topics:

Find the template on GitHub: react-story-rich-template

Settings view template with dark mode on

Go further

To go further, you may be interested to create specific components like a dice roller for example or puzzle games or a Pokémon like battle scene, everything is possible.

Check the documentation for how create your own custom components with hooks:

Package Sidebar

Install

npm i @react-story-rich/core

Weekly Downloads

0

Version

2.0.0-beta.7

License

MIT

Unpacked Size

281 kB

Total Files

54

Last publish

Collaborators

  • wasa42