{"id":31776867,"url":"https://github.com/benckx/european-city-simulation","last_synced_at":"2025-10-10T05:58:43.507Z","repository":{"id":315884113,"uuid":"1058699349","full_name":"benckx/european-city-simulation","owner":"benckx","description":"Procedural city layout generator","archived":false,"fork":false,"pushed_at":"2025-09-28T11:56:05.000Z","size":477,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T13:24:50.879Z","etag":null,"topics":["city-builder","creative-coding","game-development","generative-art","geometric-algorithms","geometry","procedural-generation","strategy-game"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benckx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-17T12:39:08.000Z","updated_at":"2025-09-27T17:30:04.000Z","dependencies_parsed_at":"2025-09-21T12:23:48.953Z","dependency_job_id":"e8d18887-78de-40d9-98e0-54bc5ad865bf","html_url":"https://github.com/benckx/european-city-simulation","commit_stats":null,"previous_names":["benckx/european-city-simulation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benckx/european-city-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Feuropean-city-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Feuropean-city-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Feuropean-city-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Feuropean-city-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benckx","download_url":"https://codeload.github.com/benckx/european-city-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benckx%2Feuropean-city-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002867,"owners_count":26083468,"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-10T02:00:06.843Z","response_time":62,"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":["city-builder","creative-coding","game-development","generative-art","geometric-algorithms","geometry","procedural-generation","strategy-game"],"created_at":"2025-10-10T05:58:40.062Z","updated_at":"2025-10-10T05:58:43.493Z","avatar_url":"https://github.com/benckx.png","language":"Kotlin","funding_links":["https://paypal.me/benckx/2"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://paypal.me/benckx/2\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-green.svg\"/\u003e\n\u003c/a\u003e\n\n# About\n\nI've been playing a lot of [Transport Fever 2](https://store.steampowered.com/app/1066780/Transport_Fever_2/) recently,\nand I've noticed procedural city layouts in video games usually follow a grid pattern, similar to many US cities.\nHowever, Europans cities are a bit more irregular. So I've been thinking about how a European city layout could be\ngenerated.\n\nI'm not sure how far I'll take this; it's just a little bit of fun. I might render the city in 3D\nwith [jMonkeyEngine](https://github.com/jMonkeyEngine/jmonkeyengine) later, and maybe turn this into a little game.\n\nIt's still very much a work in progress, so I won't spend too much time on documentation at the moment.\n\n\u003cimg src=\"images/layout05.png\" alt=\"drawing\" width=\"900\"/\u003e\n\n# How To\n\nIt's a Gradle-based Kotlin project. The easiest way could be to\nrun [GenerateLayout.kt](src/main/kotlin/simulation/GenerateLayout.kt) in IntelliJ.\n\n# Gallery\n\nOccasionally, the intermediary representations and debug outputs are kinda neat looking on their own, so I'll post them\nto [r/generative](https://www.reddit.com/r/generative)\n\n- [2025-09-21](https://www.reddit.com/r/generative/comments/1nmmkoc/working_on_a_procedural_city_layout_algorithm/)\n- [2025-09-28](https://www.reddit.com/r/generative/comments/1nsjnea/intermediary_representations/)\n- [2025-09-29](https://www.reddit.com/r/generative/comments/1ntlhoy/update_on_my_procedural_city_layout_algorithm/)\n\n# TODO\n\n- ~~Init triangulation could be incremental: if we find a triangulation with 15 points, we could keep those points then\n  add 3 points instead of starting from the start every time -\u003e we could start from 10 points and then add 2 by 2 or\n  something like that~~\n- If a quadrilateral is very trapezoidal, split it in 2 with right angles before subdividing should ensure\n  sub-quadrilaterals are more rectangular (because we have a side with right angles to start subdividing from)\n- Also use taxi cab distance instead of Euclidean distance when creating points for the triangulation\n- Merge the 4 contiguous triangles into 1 quadrilateral if 1 point is in the 4 triangles\n- Split main function for all the different phases (maybe with a `T : { Layout? -\u003e Layout }`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenckx%2Feuropean-city-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenckx%2Feuropean-city-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenckx%2Feuropean-city-simulation/lists"}