{"id":13568202,"url":"https://github.com/marian42/wavefunctioncollapse","last_synced_at":"2025-05-14T22:07:05.915Z","repository":{"id":41066427,"uuid":"154741914","full_name":"marian42/wavefunctioncollapse","owner":"marian42","description":"Walk through an infinite, procedurally generated city","archived":false,"fork":false,"pushed_at":"2021-03-28T01:04:35.000Z","size":18349,"stargazers_count":4707,"open_issues_count":9,"forks_count":531,"subscribers_count":154,"default_branch":"master","last_synced_at":"2025-04-13T18:44:34.860Z","etag":null,"topics":["procjam","unity","wavefunctioncollapse"],"latest_commit_sha":null,"homepage":"https://marian42.itch.io/wfc","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marian42.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}},"created_at":"2018-10-25T21:48:08.000Z","updated_at":"2025-04-13T07:49:19.000Z","dependencies_parsed_at":"2022-07-14T07:20:40.604Z","dependency_job_id":null,"html_url":"https://github.com/marian42/wavefunctioncollapse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian42%2Fwavefunctioncollapse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian42%2Fwavefunctioncollapse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian42%2Fwavefunctioncollapse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian42%2Fwavefunctioncollapse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marian42","download_url":"https://codeload.github.com/marian42/wavefunctioncollapse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235695,"owners_count":22036963,"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","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":["procjam","unity","wavefunctioncollapse"],"created_at":"2024-08-01T14:00:21.608Z","updated_at":"2025-05-14T22:07:00.880Z","avatar_url":"https://github.com/marian42.png","language":"C#","readme":"![](https://i.imgur.com/vL80izv.jpg)\n\n# Wave Function Collapse\n\nAn infinite, procedurally generated city, assembled out of blocks using the Wave Function Collapse algorithm with backtracking.\n\nRead more about this project [here](https://marian42.de/article/wfc/) and about the WFC algorithm [here](https://github.com/mxgmn/WaveFunctionCollapse).\n\n## Play\n\nDownload the game on Itch.io: [https://marian42.itch.io/wfc](https://marian42.itch.io/wfc)  \nCurrently, there is no gameplay, you can only walk around and look at the scenery.\n\nKeyboard Controls: WASD for walking, Space to jump, Shift to run, Ctrl to jetpack.  \nXBOX Controls: Left Stick for walking, right stick for looking around, A to jump, LB to run, RB to jetpack\n\nFlight mode: Use M to toggle between flight mode and normal mode. In flight mode, you fly across the world, without any controls.\n\n## Editing the module set\n\nBy changing the module set, you can make some changes to the world generation without writing code.\nYou can disable or enable modules, change their spawn probability, their connectors, their neighbor rules or you can add new ones.\nHere is how to do it:\n\n1. Open the `Prototypes` scene.\n2. Edit the blocks in the scene. You'll mostly change values in the `ModulePrototype` components.\n3. Select the \"Prototypes\" game object in the hierarchy and apply your changes to the prefab (Overrides -\u003e Apply all).\n4. Select the file \"ModuleData\" in the asset folder.\n5. Click \"Create module data\".\n6. Optional: Click \"Simplify module data\". This takes some time, but will make world generation faster.\n7. Save your work and go back to the `Game` scene. You can now use your updated module set.\n\n## Generating worlds in the editor\n\nThere are different ways to generate worlds in the editor:\n\n- Select the Map object. In the `MapBehaviour` component, select a size and click \"Initialize NxN area\".\n- Select the \"Area Selector\" object.\nMove and scale it to select an area, then use the \"Generate\" button to generate a map.\n- Use the \"Slot Inspector\" object to show details about a single position.\nIt shows you which modules can be spawned at that position and lets you select modules manually.\n\nIf you want to enter Play mode without losing your map, disable the \"Generate Map Near Player\" and the \"Occlusion culling\" script.\nNote that none of the components serialize, so you can't change the map once it has been serialized.\nThat means that you can't change your map in Play mode unless you initialized it in Play mode.\n","funding_links":[],"categories":["C# #","C\\#","Tutorials","C#","Generator"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarian42%2Fwavefunctioncollapse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarian42%2Fwavefunctioncollapse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarian42%2Fwavefunctioncollapse/lists"}