{"id":17261233,"url":"https://github.com/aybe/leveldecomposer","last_synced_at":"2025-03-26T10:10:15.788Z","repository":{"id":20827328,"uuid":"24113236","full_name":"aybe/LevelDecomposer","owner":"aybe","description":"Converts a level bitmap to a tile sheet / level data and vice-versa.","archived":false,"fork":false,"pushed_at":"2014-09-17T14:37:35.000Z","size":712,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:22:37.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aybe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-16T18:58:34.000Z","updated_at":"2022-07-14T09:19:31.000Z","dependencies_parsed_at":"2022-09-13T19:50:44.485Z","dependency_job_id":null,"html_url":"https://github.com/aybe/LevelDecomposer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FLevelDecomposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FLevelDecomposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FLevelDecomposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FLevelDecomposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aybe","download_url":"https://codeload.github.com/aybe/LevelDecomposer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632423,"owners_count":20647193,"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":[],"created_at":"2024-10-15T07:50:33.115Z","updated_at":"2025-03-26T10:10:15.760Z","avatar_url":"https://github.com/aybe.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"LevelDecomposer\n===============\n\n*Converts a level bitmap to a tile sheet / level data and vice-versa.*\n\n**Binaries**\n\nPre-built binaries are available [here](https://github.com/aybe/LevelDecomposer/releases).\n\n**NuGet package**\n\nGet it [here](https://www.nuget.org/packages/LevelDecomposer/).\n\n**Example**\n\nAn input level bitmap :\n\n![](https://raw.githubusercontent.com/aybe/LevelDecomposer/master/sample/example_recompose.png)\n\nGets decomposed to a tile sheet and JSON level data :\n\n![](https://raw.githubusercontent.com/aybe/LevelDecomposer/master/sample/example_decompose.png)\n\n```\n{\n  \"SheetName\": \"decompose.png\",\n  \"SheetWidth\": 256,\n  \"SheetHeight\": 112,\n  \"LevelWidth\": 40,\n  \"LevelHeight\": 24,\n  \"TileWidth\": 16,\n  \"TileHeight\": 16,\n  \"Tiles\": [\n    0,\n    1,\n    1,\n    1,\n    1,\n    1,\n    1,\n    1,\n    // etc ...\n```\n\nThe other way around is also possible.\n\n**Notes \u0026 limitations**\n\n- the tile index uses a 32-bit integer, that should be enough for most purposes :D\n\n- make sure that the tile sheet image is in the same folder than the JSON level data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fleveldecomposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faybe%2Fleveldecomposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fleveldecomposer/lists"}