{"id":19492321,"url":"https://github.com/glouw/dungen","last_synced_at":"2025-04-25T19:32:25.599Z","repository":{"id":128297355,"uuid":"121894986","full_name":"glouw/dungen","owner":"glouw","description":"The dungeon generator","archived":false,"fork":false,"pushed_at":"2018-10-13T20:15:07.000Z","size":109,"stargazers_count":50,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T02:51:03.682Z","etag":null,"topics":["dungeon","generator","procedural"],"latest_commit_sha":null,"homepage":"http://glouw.com/2018/02/17/dungen.html","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/glouw.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":"2018-02-17T21:42:19.000Z","updated_at":"2024-09-05T14:37:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"4323a7a5-fd9e-442a-9e35-a2c568df218b","html_url":"https://github.com/glouw/dungen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glouw%2Fdungen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glouw%2Fdungen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glouw%2Fdungen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glouw%2Fdungen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glouw","download_url":"https://codeload.github.com/glouw/dungen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250882637,"owners_count":21502341,"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":["dungeon","generator","procedural"],"created_at":"2024-11-10T21:20:25.676Z","updated_at":"2025-04-25T19:32:25.594Z","avatar_url":"https://github.com/glouw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](img/dungen.PNG)\n\nDelaunay Triangulation Dungeon Generator.\n\n    \u003e\u003e Inspired by Tiny Keep's dungeon generator.\n\nUse case:\n\n    #include \"Map.h\"\n\n    int main()\n    {\n        const Map map = xmgen(80, 120, 10, 40);\n        xmprint(map);\n        xmclose(map);\n    }\n\nWhere the map generation function is defined as:\n\n    Map xmgen(\n            number of columns,\n            number of rows,\n            size of grid,\n            max number of rooms);\n\nGenerated map is stored as a 2D array of characters.\n\nHere's what it looks like:\n\n    #############################################################\n    ###########         #         #         #         ###########\n    ##       ##         #         #         #         ###########\n    ##       ##         #         #         #         #         #\n    ##       ##         #         #         #         #         #\n    ##                                                          #\n    ##       ##         #         #         #         #         #\n    ##       ##         #         #         #         #         #\n    ##       ##         #         #         #         ##### #####\n    ###########         #         #         #         ##### #####\n    ############### ################### ################### #####\n    ############### ###############         #         ##       ##\n    #############     #############         #         ##       ##\n    ###########         ###########         #         #         #\n    ###########         ###########         #         #         #\n    ###########         ###########                             #\n    ###########         ###########         #         #         #\n    ###########         ###########         #         #         #\n    #############     #############         #         ##       ##\n    ############### ###############         #         ##       ##\n    ############### ############################# ######### #####\n    ###     #####     ########################       ####     ###\n    ###     #####     ####       #############       ###       ##\n    ###     ###         ##       #############       ##         #\n    ###     ###         ##       #############       ##         #\n    ###                          #############                  #\n    ###     ###         ##       #############       ##         #\n    ###     ###         ##       #############       ##         #\n    ###     #####     ####       #############       ###       ##\n    ###     #####     ####### ################       ####     ###\n    ##### ######### ######### ############################# #####\n    #         #         ##### ######       ###       ####     ###\n    #         #         ##       ###       ###       ####     ###\n    #         #         ##       ###       ###       ####     ###\n    #         #         ##       ###       ###       ####     ###\n    #                   ##                                    ###\n    #         #         ##       ###       ###       ####     ###\n    #         #         ##       ###       ###       ####     ###\n    #         #         ##       ###       ###       ####     ###\n    #         #         ############       ###       ####     ###\n    ##### #######################################################\n    ##### ######       ###       ################################\n    ##       ###       ###       ################################\n    ##       ###       ###       ################################\n    ##       ###       ###       ################################\n    ##                           ################################\n    ##       ###       ###       ################################\n    ##       ###       ###       ################################\n    ##       ###       ###       ################################\n    ############       ###       ################################\n    ############### ######### ###################################\n    ############       ###       ##############     #############\n    ############       ###       ##############     #####     ###\n    ############       ###       ##############     ####       ##\n    ############       ###       ##############     ####       ##\n    ############       ###       ##############                ##\n    ############       ###       ##############     ####       ##\n    ############       ###       ##############     ####       ##\n    ############       ###       ##############     #####     ###\n    ############       ###       ##############     ####### #####\n    ############### ######### ################### ######### #####\n    #         ###     ####       ##############     ####### #####\n    #         ##       ##         #         ###     ####       ##\n    #         ##       ##         #         ##       ###       ##\n    #         ##       ##         #         ##       ###       ##\n    #                                       ##       ###       ##\n    #         ##       ##         #         ##       ###       ##\n    #         ##       ##         #         ##       ###       ##\n    #         ##       ##         #         ###     ####       ##\n    #         ###     ####       ###### #######     ####### #####\n    ##### ############################# ######### ######### #####\n    #         ######################### ######### #####         #\n    #         #######################     #####     ###         #\n    #         #######################     ####       ##         #\n    #         #######################     ####       ##         #\n    #         #######################                           #\n    #         #######################     ####       ##         #\n    #         #######################     ####       ##         #\n    #         #######################     #####     ###         #\n    #         #########################################         #\n    ##### ################################################# #####\n    ##### #####         ###     #####     #############         #\n    #         #         ##       ####     #############         #\n    #         #         ##       ####     #############         #\n    #         #         ##       ####     #############         #\n    #                                     #############         #\n    #         #         ##       ####     #############         #\n    #         #         ##       ####     #############         #\n    #         #         ##       ####     #############         #\n    ###########         ###     #####     #############         #\n    ############### ######### ######### ################### #####\n    ###########         ##### #####         #         ##### #####\n    ###########         ##       ##         #         ##       ##\n    ###########         ##       ##         #         ##       ##\n    ###########         ##       ##         #         ##       ##\n    ###########         ##       ##                            ##\n    ###########         ##       ##         #         ##       ##\n    ###########         ##       ##         #         ##       ##\n    ###########         ##       ##         #         ##       ##\n    ###########         ###########         #         ###########\n    #############################################################\n\nCredit to Phi Dinh for the awesome algorithm.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglouw%2Fdungen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglouw%2Fdungen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglouw%2Fdungen/lists"}