this post was submitted on 30 Jan 2024
58 points (98.3% liked)

Rust Programming

7734 readers
2 users here now

founded 5 years ago
MODERATORS
58
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 

I am delighted to finally release a project that has been cooking for quite a while: Yarn Spinner for Rust ๐ŸŽ‰ . Some of you might remember this under the name Yarn Slinger, but the kind folks at Secret Lab have allowed me to use their trademark! Yay!

What is Yarn Spinner?

It's a friendly tool that helps you write dialog! See for yourself at the live demo. You can also check out this or this GDC talk about the original C# implementation. What I have released today is the Rust port for the project, with first-class support for Bevy!

Quickstart

Writing a dialog with Yarn Spinner is as easy as whipping up a simple screenplay:

// assets/dialogue/hello_world.yarn
title: Start
***
Ancient Reptilian Brain: There is nothing. Only warm, primordial blackness. Your conscience ferments in it -- no larger than a single grain of malt. You don't have to do anything anymore.
Ancient Reptilian Brain: Ever.
Ancient Reptilian Brain: Never ever.
-> Never ever ever?
  Ancient Reptilian Brain: Never ever ever ever, baby!
-> (Simply keep on non-existing.)

Ancient Reptilian Brain: An inordinate amount of time passes. It is utterly void of struggle. No ex-wives are contained within it. 
===

Pretty simple file format, right? Check out the general Yarn Spinner documentation for more or look into the Bevy examples.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 6 months ago (1 children)
[โ€“] [email protected] 4 points 6 months ago

Doki Doki Rust Programming Club