Skip to content

Commit ebd52c6

Browse files
committed
add initial rule getter to 2D WFC mapper; use tileset terrainsettings for initial rules on tilemap layers
1 parent f48c9e1 commit ebd52c6

File tree

11 files changed

+1324
-1
lines changed

11 files changed

+1324
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Features:
1616
The algorithm also tries to infer some valid cell combinations beyond those provided in the example.
1717
In cases when the algorithm produces some invalid or not-nice-looking cell combinations, it's possible to also provide examples of cell combinations that should not appear in the final result.
1818
Or stop the generator from searching for additional cell combinations and provide all possible combinations in the initial example.
19+
Rules can also in some cases be learned from terrain settings of tilesets used in `TileMapLayer` maps.
1920
- Supports **different node types**:
2021
- `TileMapLayer` and `TileMap` (including some **hexagonal** tilemaps, see [example](addons/wfc/examples/demo_wfc_2d_hex_tilemap.tscn))
2122
- `GridMap` (a flat map in one of XY/YZ/XZ planes can be generated)
@@ -118,7 +119,7 @@ So please refer to source code to find a way to do what you need and feel free t
118119

119120
This addon is licenced under MIT licence.
120121

121-
Examples/demos use assets (["tiny dungeon" tileset](addons/wfc/examples/assets/kenney-tiny-dungeon), ["nature kit" models pack](addons/wfc/examples/assets/kenny-nature-kit)) from [Kenney](https://kenney.nl/).
122+
Examples/demos use assets (["tiny dungeon" tileset](addons/wfc/examples/assets/kenney-tiny-dungeon), ["Pixel Shmup" tileset](https://www.kenney.nl/assets/pixel-shmup), ["nature kit" models pack](addons/wfc/examples/assets/kenny-nature-kit)) from [Kenney](https://kenney.nl/).
122123
Hexagonal tilemap example [uses](addons/wfc/examples/assets/Underearth) ["Underearth Hex Dungeon" tile set](https://opengameart.org/content/underearth-hex-dungeon).
123124

124125
This addon uses [GUT](https://github.com/bitwes/Gut) for unit testing (not included in downloadable archive).

addons/wfc/examples/assets/kenney-pixel-shmup/License.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
3+
Pixel Shmup (1.1)
4+
5+
Created/distributed by Kenney (www.kenney.nl)
6+
Creation date: 01-11-2021
7+
8+
------------------------------
9+
10+
License: (Creative Commons Zero, CC0)
11+
http://creativecommons.org/publicdomain/zero/1.0/
12+
13+
This content is free to use in personal, educational and commercial projects.
14+
Support us by crediting Kenney or www.kenney.nl (this is not mandatory)
15+
16+
------------------------------
17+
18+
Donate: http://support.kenney.nl
19+
Patreon: http://patreon.com/kenney/
20+
21+
Follow on Twitter for updates:
22+
http://twitter.com/KenneyNL

0 commit comments

Comments
 (0)