Story Package
The Story package contains methods to control the interactive environment through programmable components.
1. get_context()#
Methods that return the context of interactive environment.
Returns:#
- A
StoryAsync
object representing the context.
Example#
Run2.1. sleep_async(time: float)#
Simulate an asynchronous delay to synchronize operations.
Parameters:#
time (float)
: Delay duration in seconds.
Example#
Run2.2. text()#
Returns an internal Text object for creating and managing interactive text elements.
Returns:#
Example#
Run2.2.1 init_async()#
Initialize the Text component.
Returns:#
Example#
Run2.2.2 write(markdown: str)#
Write text in component.
Parameters:#
markdown (float)
: The KaTeX-compatible Markdown code to be rendered in the component.
Returns:#
Example#
Run