{"id":27141580,"url":"https://github.com/ztry8/dungeongen","last_synced_at":"2025-04-08T07:00:05.692Z","repository":{"id":285108431,"uuid":"837118775","full_name":"Ztry8/DungeonGen","owner":"Ztry8","description":"Dungeon generator for roguelikes written in pure C99!","archived":false,"fork":false,"pushed_at":"2025-03-29T15:02:01.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:32:20.578Z","etag":null,"topics":["dungeon","generator","roguelike"],"latest_commit_sha":null,"homepage":"","language":"C","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/Ztry8.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-08-02T08:53:43.000Z","updated_at":"2025-03-29T15:02:04.000Z","dependencies_parsed_at":"2025-03-29T15:42:24.232Z","dependency_job_id":null,"html_url":"https://github.com/Ztry8/DungeonGen","commit_stats":null,"previous_names":["ztry8/dungeongen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ztry8%2FDungeonGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ztry8%2FDungeonGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ztry8%2FDungeonGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ztry8%2FDungeonGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ztry8","download_url":"https://codeload.github.com/Ztry8/DungeonGen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792887,"owners_count":20996899,"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","roguelike"],"created_at":"2025-04-08T07:00:04.939Z","updated_at":"2025-04-08T07:00:05.661Z","avatar_url":"https://github.com/Ztry8.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DungeonGen\n## Fast and simple level generator for roguelikes written in pure C99/Rust! \n![screenshot](https://github.com/Ztry8/DungeonGen/blob/main/screenshots/12.png)\n\n### About generator\n\n#### The programmer's part\nThe program generates [.pbm images](https://en.wikipedia.org/wiki/Netpbm) (or display in console) of the dungeon map for visual perception,   \nbut the basic generator algorithm simply manipulates a vector of tiles.   \nAlgorithm based on [this](https://www.roguebasin.com/index.php/Random_Walk_Cave_Generation)    \n\n#### The player's part\nThis program creates cave-like rooms with corridors.\nCould be a cave with mining tunnels!   \n\n### Designation\n\n#### Text mode\n`\u003c` - exit   \n`Z` - enemy   \n`!` - chest\n\n#### Image mode\n`blue` - exit   \n`red` - enemy   \n`yellow` - chest\n\n\n### Building\nThe project has only one file, so you can build it with a single command:   \n```clang -std=c99 -Wall -Wextra -pedantic main.c -o generator``` (For Rust: ```cargo run```)\n\n\n### Time\nThe time to generate a map with a scale of 100 (300x200 tiles) is range from 0.002 to 0.003 seconds.\nIf the program was built by the command in the `Building` section.\n\n\n### TODO\n- [x] Fixed the bug with generating a map outside the boundary.\n- [x] Added the input for scale. \n- [x] Replaced stack with the heap.\n- [x] Added corridors and rooms.\n- [x] Added ```\u003c; E; *;``` tiles.\n- [x] Added image support\n- [x] Add Rust version\n\n\n### Results\n![screenshot](https://github.com/Ztry8/DungeonGen/blob/main/screenshots/5.png)\n![screenshot](https://github.com/Ztry8/DungeonGen/blob/main/screenshots/4.png)\n![screenshot](https://github.com/Ztry8/DungeonGen/blob/main/screenshots/1.png)\n![screenshot](https://github.com/Ztry8/DungeonGen/blob/main/screenshots/3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztry8%2Fdungeongen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztry8%2Fdungeongen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztry8%2Fdungeongen/lists"}