CrawfisSoftware.MazeTilings 1.0.5

dotnet add package CrawfisSoftware.MazeTilings --version 1.0.5
                    
NuGet\Install-Package CrawfisSoftware.MazeTilings -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CrawfisSoftware.MazeTilings" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CrawfisSoftware.MazeTilings" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="CrawfisSoftware.MazeTilings" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CrawfisSoftware.MazeTilings --version 1.0.5
                    
#r "nuget: CrawfisSoftware.MazeTilings, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CrawfisSoftware.MazeTilings@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CrawfisSoftware.MazeTilings&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=CrawfisSoftware.MazeTilings&version=1.0.5
                    
Install as a Cake Tool

MazeTilings

Unity Package Manager dependency

This repository contains a Unity UPM package at Packages/com.crawfissoftware.mazetilings.

If you want this package to depend on another Unity package (for example the Crawfis tilings framework), declare it in Packages/com.crawfissoftware.mazetilings/package.json under dependencies.

Dependency hosted as a public GitHub repo

UPM can resolve dependencies directly from Git. Use a tagged version (recommended) so installs are reproducible:

  • In package.json:
    • "dependencies": { "com.crawfissoftware.tilings": "https://github.com/Crawfis-Software/<repo>.git#v1.2.3" }

Dependency distributed as a GitHub tarball release

Unity can also install packages from a tarball URL via Package Manager → Add package from git URL....

If you install dependencies via tarball, UPM will not automatically discover where to fetch that dependency unless you also provide a resolvable entry (registry or Git URL) in dependencies. In practice this means you should prefer Git URL (or a registry) for dependencies, and reserve tarball installs for end-user convenience.

A .NET Standard 2.1 library for converting mazes (built on CrawfisSoftware.Maze) into Wang-tile tilings. It provides tiling builders, colorizers, and path tile helpers that can be consumed by any renderer. SVG output lives in a separate example project and is intentionally not covered here.

Package dependencies

Referenced packages (see MazeTilings.csproj):

Key components

  • MazeWrapperTilingBuilder: maps a Maze<int,int> to tiles via a ITilingEnumerator and ITileSelector.
  • PathTileSetFactory: builds arc-based or Manhattan-style path tile sets; includes TileSizePathTileDecorator for scaling tiles.
  • MazeColorizers and AbstractMazeColorizer: utilities for turning maze directions/metrics into edge colors.
  • WangColorizer: generates a Wang tile set on the fly from a colorizer function and builds the corresponding tiling.

How to use (library-only)

  1. Build or obtain a Maze<int,int> using the CrawfisSoftware maze builders.
  2. Choose or build an ITileSet (any renderer-compatible set; the library itself is renderer-agnostic).
  3. Select a ITilingEnumerator (visit order) and ITileSelector (matching strategy).
  4. Instantiate MazeWrapperTilingBuilder (or WangColorizer for dynamic tile creation), set Colorizer, and call UpdateTiling.
  5. Consume the resulting ITiling2D with your renderer of choice.

Example:

var mazeBuilder = new MazeBuilder<int, int>(width, height);
Maze<int, int> maze = mazeBuilder.GetMaze();
var tileSet = /* any ITileSet compatible with your renderer */;
var tilingBuilder = new MazeWrapperTilingBuilder(maze)
{
    TileSelector = new SequentialTileSelector(2),
    TilingEnumerator = new SequentialTilingEnumerator(),
    Colorizer = MazeColorizers.ColorizeBasedOnDirectionOnly
};
tilingBuilder.UpdateTiling(tileSet);
ITiling2D tiling = tilingBuilder.GetTiling();
// Render tiling with your pipeline (outside this library).

Notes

  • This project is renderer-agnostic. SVG-specific code and demos live in ExampleProjects/MazeTilingSVG, not here. Unity Examples are also separate.
  • Targets .NET Standard 2.1; usable from .NET 6/7/8+/Unity (with provided stubs) so long as the CrawfisSoftware dependencies are available.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 97 1/24/2026
1.0.0 101 1/24/2026