Skip to content

Commit

Permalink
fixed tiled name symmetry parsing for xml, added tutorial to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
selfsame committed Oct 29, 2016
1 parent f2bf06f commit 3ad11c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -2,8 +2,18 @@

A fork of [https://github.com/mxgmn/WaveFunctionCollapse](https://github.com/mxgmn/WaveFunctionCollapse) with tools for the Unity Game engine.

# Installation

Clone this repo under your projets `Assets` directory, or import a unity package asset from
[http://selfsame.itch.io/unitywfc](http://selfsame.itch.io/unitywfc).

# Usage

## video tutorial

[https://www.youtube.com/watch?v=CTJJrC3BAGM](https://www.youtube.com/watch?v=CTJJrC3BAGM)


## Training

Training components define sample data from their child objects. The contained objects must have a prefab connection. Rotation of objects are recorded. The OverlapWFC component will auto compile it's training on Start, in editor mode you will need to use the `compile` button.
Expand Down
2 changes: 1 addition & 1 deletion Training.cs
Expand Up @@ -59,7 +59,7 @@ class Training : MonoBehaviour{
counts[o] = 1;
string assetpath = AssetPath(o);
string sym = "X";
string last = assetpath.Substring(o.name.Length - 1);
string last = assetpath.Substring(assetpath.Length - 1);
if (last == "X" || last == "I" || last == "L" || last == "T" || last == "/"){
sym = last;
}
Expand Down

0 comments on commit 3ad11c9

Please sign in to comment.