cefn / lauf

Monorepo for lauf packages.
MIT License
5 stars 0 forks source link

Interactive Fiction example illustrating generators of async steps. #212

Open cefn opened 1 year ago

cefn commented 1 year ago

An interactive fiction framework as a worked example of an async sequence. The interactive fiction sequence is a generator of async calls to a UI framework that shows pages and choices in a choose-your-own-adventure style, using the @lauf/stepmachine package.

See https://github.com/cefn/lauf/blob/story-plan-example/apps/adventure/src/stories/about.tsx

Overall this PR demonstrates how the generators of async calls in the core of the implementation can be wrapped and the calls inspected and shown in a Redux Devtools-style presentation of events.

Followups are...

As an interactive fiction API, this has already been superceded by https://github.com/cefn/cloak-of-darkness whose generator type is dedicated to interactive fiction structures (doesn't have a dependency on @lauf/stepmachine)