{"id":22760657,"url":"https://github.com/funatsufumiya/ofxldtkloader","last_synced_at":"2025-03-30T08:44:30.729Z","repository":{"id":266757642,"uuid":"899189747","full_name":"funatsufumiya/ofxLDtkLoader","owner":"funatsufumiya","description":"LDtkLoader for openFrameworks","archived":false,"fork":false,"pushed_at":"2024-12-05T23:56:00.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:06:27.256Z","etag":null,"topics":["openframeworks-addon"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funatsufumiya.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}},"created_at":"2024-12-05T19:35:29.000Z","updated_at":"2024-12-05T23:56:03.000Z","dependencies_parsed_at":"2024-12-06T00:39:00.016Z","dependency_job_id":null,"html_url":"https://github.com/funatsufumiya/ofxLDtkLoader","commit_stats":null,"previous_names":["funatsufumiya/ofxldtkloader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxLDtkLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxLDtkLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxLDtkLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxLDtkLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funatsufumiya","download_url":"https://codeload.github.com/funatsufumiya/ofxLDtkLoader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296562,"owners_count":20754632,"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":["openframeworks-addon"],"created_at":"2024-12-11T09:07:51.655Z","updated_at":"2025-03-30T08:44:30.704Z","avatar_url":"https://github.com/funatsufumiya.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofxLDtkLoader\n\n[LDtkLoader](https://github.com/Madour/LDtkLoader) for openFrameworks (tested on v0.12.0, LDtkLoader version: 1.5.3.1)\n\n## Usage\n\nSee [example](example). (Please use `projectGenerator` before run it)\n\n```cpp\n#include \"LDtkLoader.h\"\n\n//--------------------------------------------------------------\nvoid ofApp::setup(){\n    ofLogToConsole();\n\n    // ofLogNotice(\"ofApp\") \u003c\u003c \"dst2: \" \u003c\u003c ofToString(dst2);\n    ldtk::Project ldtk_project;\n    ldtk_project.loadFromFile(ofToDataPath(\"level.ldtk\", true));\n\n    // get the world\n    const auto\u0026 world = ldtk_project.getWorld();\n\n    // get the level and the layer we want to render\n    const auto\u0026 level = world.getLevel(\"Level\");\n    const auto\u0026 layer = level.getLayer(\"Ground\");\n    // get all the tiles in the Ground layer\n    const auto\u0026 tiles_vector = layer.allTiles();\n\n    for (const auto\u0026 tile : tiles_vector) {\n        auto tile_position = tile.getPosition();\n        auto tile_texture_rect = tile.getTextureRect();\n        ofLogNotice(\"ofApp\") \u003c\u003c \"Tile position: \" \u003c\u003c tile_position.x \u003c\u003c \", \" \u003c\u003c tile_position.y;\n        ofLogNotice(\"ofApp\") \u003c\u003c \"Tile texture rect: \" \u003c\u003c tile_texture_rect.x \u003c\u003c \", \" \u003c\u003c tile_texture_rect.y \u003c\u003c \", \" \u003c\u003c tile_texture_rect.width \u003c\u003c \", \" \u003c\u003c tile_texture_rect.height;\n    }\n}\n\n// Result:\n// [notice ] ofApp: Tile position: 0, 32\n// [notice ] ofApp: Tile texture rect: 96, 112, 16, 16\n// [notice ] ofApp: Tile position: 16, 32\n// [notice ] ofApp: Tile texture rect: 96, 112, 16, 16\n// [notice ] ofApp: Tile position: 32, 32\n// [notice ] ofApp: Tile texture rect: 96, 112, 16, 16\n// ....\n```\n\n## LICENSE\n\n- LDtkLoader: [zlib License](https://github.com/Madour/LDtkLoader/blob/master/LICENSE.md)\n\nNOTE: No specific copyright is claimed for this repository changes (for oF binding), but the [Apache License 2.0](LICENSE_APACHE) or [MIT License](LICENSE_MIT) can be applied if necessary.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxldtkloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunatsufumiya%2Fofxldtkloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxldtkloader/lists"}