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.

  • asudox
    link
    811 months ago

    Can’t wait for VNs written in Rust.

      • asudox
        link
        511 months ago

        Doki Doki Rust Programming Club

    • Jan HohenheimOP
      link
      3
      edit-2
      11 months ago

      “Thank you, Evrart.” (Take the comically large cheque.)

  • @[email protected]B
    link
    fedilink
    English
    111 months ago

    Here is an alternative Piped link(s):

    this

    this

    Piped is a privacy-respecting open-source alternative frontend to YouTube.

    I’m open-source; check me out at GitHub.