{"id":19613878,"url":"https://github.com/webmatze/sprite_fusion_tilemap","last_synced_at":"2026-06-06T20:31:41.606Z","repository":{"id":216630694,"uuid":"741843392","full_name":"webmatze/sprite_fusion_tilemap","owner":"webmatze","description":"Ruby Tilemap Loader for Sprite Fusion JSON Export","archived":false,"fork":false,"pushed_at":"2024-07-18T17:31:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T17:47:19.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/webmatze.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-01-11T08:20:54.000Z","updated_at":"2024-07-18T17:31:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6d24373-7b08-4976-b9ae-dcda36df412e","html_url":"https://github.com/webmatze/sprite_fusion_tilemap","commit_stats":null,"previous_names":["webmatze/sprite_fusion_tilemap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webmatze/sprite_fusion_tilemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fsprite_fusion_tilemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fsprite_fusion_tilemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fsprite_fusion_tilemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fsprite_fusion_tilemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmatze","download_url":"https://codeload.github.com/webmatze/sprite_fusion_tilemap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fsprite_fusion_tilemap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33999579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2024-11-11T10:49:05.403Z","updated_at":"2026-06-06T20:31:41.572Z","avatar_url":"https://github.com/webmatze.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Tilemap Loader for Sprite Fusion JSON Export\n## Introduction\nThis Ruby Tilemap Loader is designed to work with the JSON export format of [Sprite Fusion](https://www.spritefusion.com/), an online Tilemap Generator widely used in game development. This README provides you with all the necessary information to get started with using this loader in your projects.\n\n## Features\n- Seamless Integration: Easily load and manage tilemaps exported from Sprite Fusion.\n- Optimized for Ruby: Tailored to fit into Ruby-based game development workflows.\n- Flexible and Customizable: Easily adaptable to various game development needs.\n\n## Prerequisites\nBefore you begin, ensure you have the following installed:\n\n- Ruby (Version 3.0 or later)\n\n## Usage\nHere's a quick guide on how to use the Ruby Tilemap Loader in your project:\n\n1. Export your tilemap from Sprite Fusion in JSON format.\n2. Include the Tilemap Loader in your Ruby project.\n3. Load the tilemap using the following code snippet:\n\n```ruby\n# Sample code demonstrating how to load a tilemap\npath = \"#{File.dirname(__FILE__)}/data/tilemap.json\"\ntilemap_data = JSON.load_file(path)\ntilemap = SpriteFusion::Tilemap.load(tilemap_data)\n```\n\n## API Reference\n[Provide a brief overview of the main classes and methods in your loader, including any important parameters and return types.]\n\n## Examples\nHere are some examples of how to use the Tilemap Loader in various scenarios:\n\n```ruby\n# get the tile size\nsize = tilemap.tile_size\n\n# get the map width and height\nwidth = tilemap.map_width\nheight = tilemap.map_heigt\n\n# iterate over the layers\ntilemap.layers.each do |layer|\n  puts layer.name\n  puts \"is colliding layer: #{layer.collider?}\"\n  puts \"number of tiles: #{layer.tiles.size}\"\n\n  # iterate over the tiles\n  layer.tiles.each do |tile|\n    puts \"Tile sprite index: #{tile.id}\"\n    puts \"Tile position on map: #{tile.x}:#{tile.y}\"\n  end\nend\n```\n\n## Contributing\nContributions to the Ruby Tilemap Loader are always welcome, whether it's improving documentation, adding new features, or fixing bugs.\n\n## License\nThis project is licensed under the [MIT] - see the LICENSE file for details.\n\n## Acknowledgments\n- Thanks to [Hugo Duprez](https://www.hugoduprez.com/) for his excellent [Sprite Fusion](https://www.spritefusion.com/) Tilemap Generator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmatze%2Fsprite_fusion_tilemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmatze%2Fsprite_fusion_tilemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmatze%2Fsprite_fusion_tilemap/lists"}