{"id":21299795,"url":"https://github.com/ericoporto/agsfastwfc","last_synced_at":"2025-08-28T09:09:34.196Z","repository":{"id":85938979,"uuid":"202827552","full_name":"ericoporto/agsfastwfc","owner":"ericoporto","description":"AGS Fast Wave Function Collapse Plugin","archived":false,"fork":false,"pushed_at":"2020-06-23T18:57:39.000Z","size":1268,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T08:02:05.816Z","etag":null,"topics":["adventure-game-studio","adventuregamestudio","ags"],"latest_commit_sha":null,"homepage":"https://www.adventuregamestudio.co.uk/forums/index.php?topic=57410.0","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericoporto.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,"zenodo":null}},"created_at":"2019-08-17T02:55:38.000Z","updated_at":"2024-12-18T19:07:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4be96a62-2e6b-4cf0-af4d-97953c8380d2","html_url":"https://github.com/ericoporto/agsfastwfc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ericoporto/agsfastwfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fagsfastwfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fagsfastwfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fagsfastwfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fagsfastwfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericoporto","download_url":"https://codeload.github.com/ericoporto/agsfastwfc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2Fagsfastwfc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270962391,"owners_count":24675965,"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-08-18T02:00:08.743Z","response_time":89,"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":["adventure-game-studio","adventuregamestudio","ags"],"created_at":"2024-11-21T15:06:10.444Z","updated_at":"2025-08-18T08:03:38.722Z","avatar_url":"https://github.com/ericoporto.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agsfastwfc\n\n🚨THIS IS VERY EXPERIMENTAL🚨 | [![Build Status](https://dev.azure.com/ericoporto/agsfastwfc/_apis/build/status/ericoporto.agsfastwfc?branchName=master)](https://dev.azure.com/ericoporto/agsfastwfc/_build/latest?definitionId=7\u0026branchName=master)\n\n**AGS Fast Wave Function Collapse Plugin**\n\n![](example_demo_game.gif)\n\nUsing the [fast-wfc library code](https://github.com/math-fehr/fast-wfc) from Mathieu Fehr and Nathanaël Courant. I just made a simple interface with Adventure Game Studio. Read more on [Wafe Function Collapse here](https://github.com/mxgmn/WaveFunctionCollapse).\n\n## AgsFastWFC Script API usage\n\nagsfastwfc can generate sprites that are locally similar to the input bitmap.\n\n### Overlapping\n\n\n```\nbool AgsFastWFC.Overlapping(\n                   int destination, int sprite,\n\t\t\t\t   int seed,\n\t\t\t\t   bool periodic_input, bool periodic_output,\n\t\t\t\t   int N=3, int ground=0)\n```\n- **`int destination`** The Graphic property of a Dynamic Sprite you have created to draw the result.\n- **`int sprite`** The source sprite you want to feed FastWFC Overlapping algorithm.\n- **`int seed`** An integer number, will provide the randomness of the output.\n- **`bool periodic_input`** Should be true if the input is periodic.\n- **`bool periodic_output`** Should be true if the desired output is periodic.\n- **`int N`** A NxN pattern of pixels in the output should occur at least once in the input. Default is 3x3 pixels.\n- **`int ground`** Default is 0.\n\nExample:\n\n```\n  dynspr_dest = DynamicSprite.Create(60, 120, true);  \n  int result = AgsFastWFC.Overlapping(\n\t\t\t\t\tdynspr_dest.Graphic, obj_source.Graphic,\n\t\t\t\t\tRandom(100000),\n\t\t\t\t\ttrue, true, 3,  0);\n  obj_destination.Graphic = dynspr_dest.Graphic;\n```\n\n## Building agsfastwfc plugin\n\nfirst you need to clone this repository to the folder you clone your repos (ex: ~/git).\n\nIf you haven't already, also clone AGS and set the branch for ags3.\n\n```\ngit clone https://github.com/ericoporto/agsfastwfc.git\ngit clone https://github.com/adventuregamestudio/ags.git\npushd ags\ngit checkout ags3\npopd\n```\n\n### Windows\n\nJust load the solution on Visual Studio 2019 or 2017, and hit build.\n\n### Linux\n\nYou need gcc that supports C++17. Load a terminal and do the below after cloning.\n\n```\ncd agsfastwfc/agsfastwfc/\nmake\n```\n\n### MacOS\n\nMacOS build is untested, but should work the same way as Linux.\n\n## Image samples\n\n![](example_img.png)\n\nThe image samples come from [https://github.com/mxgmn/WaveFunctionCollapse](https://github.com/mxgmn/WaveFunctionCollapse)\n\n## Licence\n\nThis plugin interface is made with MIT License Copyright (c) 2019 Érico Vieira Porto.\n\nfast-wfc Copyright (c) 2018-2019 Mathieu Fehr and Nathanaël Courant.\n\nMIT License, see [`LICENSE`](LICENSE) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fagsfastwfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericoporto%2Fagsfastwfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Fagsfastwfc/lists"}