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.
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...
to explore how recording and playback of generators can allow stepping back in time
to use the actual Redux Devtools framework to inspect calls as they arise
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)
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
)