bevy_mod_yarn

Crates.iobevy_mod_yarn
lib.rsbevy_mod_yarn
version0.1.0
sourcesrc
created_at2023-10-15 13:00:15.957401
updated_at2023-10-15 13:00:15.957401
descriptionA bevy Yarn Spinner runtime
homepage
repository
max_upload_size
id1003699
size146,942
Will Hart (will-hart)

documentation

README

bevy_mod_yarn

This is a bevy library for Yarn Spinner, based on the chapter parser (a fork of the yharnam crate).

Usage

See the examples directory for usage (both minimal and "kitchen sink" examples are available).

Note that Yharnam only handles compiled yarn files. Yarn files can be compiled using the Yarn Spinner Console which must be downloaded separately.

The build script (build.rs) in this repository shows an example of how you can automatically compile your yarn files during the build. Note that due to limitations in bevy's asset loader the csv files created by the yarn compiler need to be renamed from the Yarn compiler defaults.

Features

The current feature(s) are available, enabled by default:

  • input-handlers, which includes default input handlers (space to progress through dialogues and numbers 1-3 for selecting options). There are checks to ensure a valid option is pressed. To disable this and provider your own input handlers, set default-features = false.
Commit count: 0

cargo fmt