{"id":24122185,"url":"https://github.com/tlinden/wfcldtk","last_synced_at":"2025-10-27T08:47:02.118Z","repository":{"id":238332202,"uuid":"793622332","full_name":"TLINDEN/wfcldtk","owner":"TLINDEN","description":"wave function collapse 2D level generator for LDTK","archived":false,"fork":false,"pushed_at":"2024-05-09T17:53:41.000Z","size":5044,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T22:29:45.637Z","etag":null,"topics":["command-line","game-development","generator","golang","ldtk","level-generator","wfc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TLINDEN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T15:09:37.000Z","updated_at":"2024-05-08T17:45:49.000Z","dependencies_parsed_at":"2024-06-19T04:49:22.369Z","dependency_job_id":null,"html_url":"https://github.com/TLINDEN/wfcldtk","commit_stats":null,"previous_names":["tlinden/wfcldtk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TLINDEN/wfcldtk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLINDEN%2Fwfcldtk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLINDEN%2Fwfcldtk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLINDEN%2Fwfcldtk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLINDEN%2Fwfcldtk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TLINDEN","download_url":"https://codeload.github.com/TLINDEN/wfcldtk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLINDEN%2Fwfcldtk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281241864,"owners_count":26467372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","game-development","generator","golang","ldtk","level-generator","wfc"],"created_at":"2025-01-11T11:38:51.113Z","updated_at":"2025-10-27T08:47:02.075Z","avatar_url":"https://github.com/TLINDEN.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wave Function Collapse 2D level generator for LDTK\n\n## Introduction\n\nThis little tool aims to generate levels using the wave function\ncollapse algorithm. It takes its input from a level in a LDTK project\nfile.\n\nSo just create a new LDTK project, add a tileset, a tileset layer and\nadd a level. Give it a name and add all the tiles you wish to use for\ngenerated levels. If you want a increase the probability, that a\nparticular tile appears, just add it multiple times to the level. The\ntiles in this level don't need to match together.\n\nThe tool is work in progress.\n\n## Example\n\nThis level has been generated using [this\ntileset](https://github.com/TLINDEN/wfcldtk/blob/main/images/inputtilemap.png)\nand [this LDTK project](https://github.com/TLINDEN/wfcldtk/blob/main/images/demo.ldtk)\n\n![example-output](https://github.com/TLINDEN/wfcldtk/blob/main/images/output.png)\n\nThe commandline to generate it was:\n\n```shell\n./wfcldtk -p images/demo.ldtk -l Input_1 images/output.png -W 24 -H 12 \u0026\u0026 display images/output.png\n```\n\n## TODO\n- add LDTK project file writing\n- add another Populate() function to be able to pre-populate the output map using an LDTK level\n- add weight to tiles in slot\n\n## Usage\n\n```default\nThis is wfcldtk, a WFC level generator for LDTK.\n\nUsage: gfn [-vd] -p \u003cproject\u003e -l \u003clevel\u003e [-W \u003cwidth\u003e -H \u003cheight\u003e] [\u003coutput image\u003e]\n\nOptions:\n-p --project \u003cproject\u003e  Read data from LDTK file \u003cproject\u003e\n-l --level \u003clevel\u003e      Use level \u003clevel\u003e as example for overlap mode\n-W --width \u003cwidth\u003e      Width in number of tiles (not pixel!)\n-H --height \u003cheight\u003e    Height\n\n-d --debug    Show debugging output\n-v --version  Show program version\n```\n\n\n## Installation\n\nYou will need the Golang toolchain  in order to build from source. GNU\nMake will also help but is not strictly neccessary.\n\nIf you want to compile the tool yourself, use `git clone` to clone the\nrepository.   Then   execute   `go mod tidy`   to   install   all\ndependencies. Then  just enter `go build` or -  if you have  GNU Make\ninstalled - `make`.\n\nTo install after building either copy the binary or execute \n`sudo make install`. \n\n\n# Report bugs\n\n[Please open an issue](https://github.com/TLINDEN/gfn/issues). Thanks!\n\n# License\n\nThis work is licensed under the terms of the General Public Licens\nversion 3.\n\n# Author\n\nCopyleft (c) 2024 Thomas von Dein\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlinden%2Fwfcldtk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlinden%2Fwfcldtk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlinden%2Fwfcldtk/lists"}