GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - v21/unity-tracery: A port of Kate Compton's Tracery to C#/Unity3d

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
LitJson.dll
LitJson.dll
 
 
README.md
README.md
 
 
TraceryDecoder.cs
TraceryDecoder.cs
 
 

Repository files navigation

This is a (currently very barebones) port of Kate Compton's Tracery text generation grammar tool to Unity (and by extension C# in general).

It's used like this:

var tracerySource = "{"origin":["one#symbol#","two#symbol#","three"],"symbol":"s"}"
var grammar = new TraceryGrammar(tracerySource);
Debug.Log(grammar.Generate());
Debug.Log(grammar.Generate());

which would give an output something like :

ones
three

You can also specify the random seed when calling Generate, to make output repeatable:

Debug.Log(grammar.Generate(123456));
Debug.Log(grammar.Generate(123456));
Debug.Log(grammar.Generate(123456));
Debug.Log(grammar.Generate(123456));

ones
ones
ones
ones

There is currently no support for modifiers, variables, or the fancy rich-object stuff that's been added recently.

About

A port of Kate Compton's Tracery to C#/Unity3d

Resources

Readme
Apache-2.0 license
Activity

Stars

20 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.