Skip to content

Relfos/WangTiles

Repository files navigation

Wang Tiles

============

Implements a random map generator using Wang Tiles, in C#.

============ Wang Tiles are a very simple but useful concept that can be used to generate an infinite set of connecting tiles. This small project was implemented based on the information found here.

Note that is just a small proof of concept done in 1 hour, using C# and OpenTK for rendering the output (you can easily swap it out for any other rendering system, the algoritm only gives you a list of tile IDs).

When running the sample, you can change the tileset using the number keys.

A sample output, using a simple tileset with roads.

Sample Output

============ Same map, using a different tileset that shows tile IDs. Numbers Output

About

Wang Tiles algorithm applied to map generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages