{"id":14961499,"url":"https://github.com/lfeq/kingdom","last_synced_at":"2026-02-21T04:32:37.068Z","repository":{"id":245973957,"uuid":"819213795","full_name":"lfeq/Kingdom","owner":"lfeq","description":"A game like Kingdom: Two Crowns but with a little of city building.","archived":false,"fork":false,"pushed_at":"2024-07-04T21:42:54.000Z","size":14542,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T12:14:22.184Z","etag":null,"topics":["game","game-development","gamedev","godot","godot-engine","godot4","godotengine"],"latest_commit_sha":null,"homepage":"","language":"GDScript","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/lfeq.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-06-24T04:19:26.000Z","updated_at":"2024-07-04T21:52:55.000Z","dependencies_parsed_at":"2025-02-09T23:32:29.172Z","dependency_job_id":"18581203-b311-4859-adef-3470b6be7c10","html_url":"https://github.com/lfeq/Kingdom","commit_stats":null,"previous_names":["lfeq/kingdom"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lfeq/Kingdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FKingdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FKingdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FKingdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FKingdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfeq","download_url":"https://codeload.github.com/lfeq/Kingdom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfeq%2FKingdom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017788,"owners_count":26086143,"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-14T02:00:06.444Z","response_time":60,"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":["game","game-development","gamedev","godot","godot-engine","godot4","godotengine"],"created_at":"2024-09-24T13:25:24.740Z","updated_at":"2025-10-14T03:16:49.527Z","avatar_url":"https://github.com/lfeq.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My first game using GODOT\n\nThis is my first game in GODOT. I'm trying to make a game like \n[Kingdom: Two Crowns](https://store.steampowered.com/app/701160/Kingdom_Two_Crowns/) but with a little more city building. I'm giving myself two weeks to finish the project (24/06/2024 to 08/07/2024)\nWish me luck!\n\n## Assets\nI'm currently using [this](https://pixelfrog-assets.itch.io/tiny-swords) asset pack made by Pixel Frog.\n\n## Map Generation\nThe map is generated using Cellular Automata and applied to the level tilemap. \nCurrently, the map generation process takes a long time to load. It's unclear whether this issue is related to the \neditor or if it's a general performance issue with Godot. The code was adapted from another repository of mine, \nwhere I implemented Cellular Automata in [Unity](https://github.com/lfeq/Artificial-Intelligence-2/blob/master/Ecosystem/Assets/Scripts/Terrain%20Generation/CellularAutomata2D.cs).\n\nHere is a code snippet of the current version in GDScript:\n```gd\n## Generates a random map by populating the map grid with random boolean values.\nfunc generateRandomMap() -\u003e void:\n\tfor x in range(mapWidth):\n\t\tmapGrid.append([])\n\t\tfor y in range(mapHeight):\n\t\t\tmapGrid[x].append(randi() % 2 == 0) # Random boolean\n\n## Iterates over the map grid to create a new map based on the number of grasses around each tile.\nfunc iterateNewMap() -\u003e void:\n\tvar tempMap = []\n\tfor x in range(mapWidth):\n\t\ttempMap.append([])\n\t\tfor y in range(mapHeight):\n\t\t\ttempMap[x].append(numberOfGrassesAroundTile(x, y) \u003e= GRASS_DENSITY_LIMIT)\n\tmapGrid = tempMap\n```\nHere are the results:\n\n![results](ReadmeFiles/MapDemo.gif)\n\n## Resources\n\n### Tree\nTrees can be cut down by getting hit, once the health of the tree reaches 0 it spawns a log to be picked up by the player.\n\n![CuttingTrees.gif](ReadmeFiles/CuttingTrees.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfeq%2Fkingdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfeq%2Fkingdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfeq%2Fkingdom/lists"}