{"id":16186952,"url":"https://github.com/robloach/raylib-tileson","last_synced_at":"2025-03-19T03:30:35.032Z","repository":{"id":46229041,"uuid":"363880090","full_name":"RobLoach/raylib-tileson","owner":"RobLoach","description":"Use Tiled maps in raylib, through Tileson.","archived":false,"fork":false,"pushed_at":"2023-05-03T14:10:21.000Z","size":225,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-05-03T15:37:59.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobLoach.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":"2021-05-03T09:33:22.000Z","updated_at":"2024-08-11T02:46:55.978Z","dependencies_parsed_at":"2024-08-11T02:46:55.632Z","dependency_job_id":"d33c38de-fdfb-49b0-b95a-b1d720ef8973","html_url":"https://github.com/RobLoach/raylib-tileson","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-tileson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-tileson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-tileson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-tileson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/raylib-tileson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243963569,"owners_count":20375641,"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-10T07:19:55.096Z","updated_at":"2025-03-19T03:30:35.027Z","avatar_url":"https://github.com/RobLoach.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raylib-tileson\n\nUse [Tiled](https://www.mapeditor.org) maps in [raylib](https://www.raylib.com/), through [Tileson](https://github.com/SSBMTonberry/tileson).\n\n![raylib-tileson Example Screenshot](example/raylib-tileson-example.png)\n\n## Example\n\n``` c\n#include \"raylib.h\"\n\n#define RAYLIB_TILESON_IMPLEMENTATION\n#include \"raylib-tileson.h\"\n\nint main(int argc, char* argv[]) {\n    InitWindow(800, 450, \"[raylib-tileson] example\");\n    SetTargetFPS(60);\n\n    // Load the map\n    Map map = LoadTiled(\"resources/desert.json\");\n\n    while (!WindowShouldClose()) {\n        BeginDrawing();\n        {\n            ClearBackground(RAYWHITE);\n\n            // Draw the map\n            DrawTiled(map, 0, 0, WHITE);\n        }\n        EndDrawing();\n    }\n\n    // De-Initialization\n    UnloadMap(map);\n\n    CloseWindow();\n    return 0;\n}\n```\n\n## Dependencies\n\n- [raylib](https://www.raylib.com/) ~5.5\n- C++17 or higher\n\n## API\n\n``` c\nMap LoadTiled(const char* fileName);\nMap LoadTiledFromMemory(const unsigned char *fileData, int dataSize, const char* baseDir);\nbool IsTiledReady(Map map);\nvoid DrawTiled(Map map, int posX, int posY, Color tint);\nvoid UnloadMap(Map map);\n```\n\n## Alternatives\n\nWhile *raylib-tileson* does compile and run from C, it requires compilation with C++17. Mixing C and C++ may not be preferable by all, so there could be a desire to use an alternative...\n\n- [raylib-tmx](https://github.com/RobLoach/raylib-tmx)\n- [raylib-tiled](https://github.com/RobLoach/raylib-tiled)\n\n## Development\n\n``` bash\nmkdir build\ncd build\ncmake ..\nmake\n./example/raylib-tileson-example\n```\n\n## License\n\n*raylib-tileson* is licensed under the BSD 2-Clause License, see [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-tileson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Fraylib-tileson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-tileson/lists"}