Skip to content

Commit

Permalink
add initial rule getter to 2D WFC mapper; use tileset terrainsettings…
Browse files Browse the repository at this point in the history
… for initial rules on tilemap layers
  • Loading branch information
AlexeyBond committed Sep 27, 2024
1 parent f48c9e1 commit ebd52c6
Show file tree
Hide file tree
Showing 11 changed files with 1,324 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Features:
The algorithm also tries to infer some valid cell combinations beyond those provided in the example.
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.
Or stop the generator from searching for additional cell combinations and provide all possible combinations in the initial example.
Rules can also in some cases be learned from terrain settings of tilesets used in `TileMapLayer` maps.
- Supports **different node types**:
- `TileMapLayer` and `TileMap` (including some **hexagonal** tilemaps, see [example](addons/wfc/examples/demo_wfc_2d_hex_tilemap.tscn))
- `GridMap` (a flat map in one of XY/YZ/XZ planes can be generated)
Expand Down Expand Up @@ -118,7 +119,7 @@ So please refer to source code to find a way to do what you need and feel free t

This addon is licenced under MIT licence.

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/).
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/).
Hexagonal tilemap example [uses](addons/wfc/examples/assets/Underearth) ["Underearth Hex Dungeon" tile set](https://opengameart.org/content/underearth-hex-dungeon).

This addon uses [GUT](https://github.com/bitwes/Gut) for unit testing (not included in downloadable archive).
Expand Down
22 changes: 22 additions & 0 deletions addons/wfc/examples/assets/kenney-pixel-shmup/License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


Pixel Shmup (1.1)

Created/distributed by Kenney (www.kenney.nl)
Creation date: 01-11-2021

------------------------------

License: (Creative Commons Zero, CC0)
http://creativecommons.org/publicdomain/zero/1.0/

This content is free to use in personal, educational and commercial projects.
Support us by crediting Kenney or www.kenney.nl (this is not mandatory)

------------------------------

Donate: http://support.kenney.nl
Patreon: http://patreon.com/kenney/

Follow on Twitter for updates:
http://twitter.com/KenneyNL
Expand Down
Loading

0 comments on commit ebd52c6

Please sign in to comment.