{"id":47621693,"url":"https://github.com/remarkablegames/kaplay-plugin-tiled","last_synced_at":"2026-04-01T22:17:44.814Z","repository":{"id":345889201,"uuid":"1187728470","full_name":"remarkablegames/kaplay-plugin-tiled","owner":"remarkablegames","description":"🦖 KAPLAY plugin for Tiled maps","archived":false,"fork":false,"pushed_at":"2026-03-31T05:22:42.000Z","size":599,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-31T07:44:33.153Z","etag":null,"topics":["javascript","json","kaplay","kaplayjs","library","map","npm","package","plugin","tiled","tiledmap","typescript"],"latest_commit_sha":null,"homepage":"http://remarkablegames.org/kaplay-plugin-tiled/","language":"TypeScript","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/remarkablegames.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-21T04:36:15.000Z","updated_at":"2026-03-31T05:21:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/remarkablegames/kaplay-plugin-tiled","commit_stats":null,"previous_names":["remarkablegames/kaplay-plugin-tiled"],"tags_count":4,"template":false,"template_full_name":"remarkablegames/kaplay-plugin-template","purl":"pkg:github/remarkablegames/kaplay-plugin-tiled","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablegames%2Fkaplay-plugin-tiled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablegames%2Fkaplay-plugin-tiled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablegames%2Fkaplay-plugin-tiled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablegames%2Fkaplay-plugin-tiled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablegames","download_url":"https://codeload.github.com/remarkablegames/kaplay-plugin-tiled/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablegames%2Fkaplay-plugin-tiled/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","json","kaplay","kaplayjs","library","map","npm","package","plugin","tiled","tiledmap","typescript"],"created_at":"2026-04-01T22:17:44.280Z","updated_at":"2026-04-01T22:17:44.805Z","avatar_url":"https://github.com/remarkablegames.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kaplay-plugin-tiled\n\n[![NPM](https://nodei.co/npm/kaplay-plugin-tiled.svg)](https://www.npmjs.com/package/kaplay-plugin-tiled)\n\n[![NPM version](https://img.shields.io/npm/v/kaplay-plugin-tiled.svg)](https://www.npmjs.com/package/kaplay-plugin-tiled)\n[![build](https://github.com/remarkablegames/kaplay-plugin-tiled/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablegames/kaplay-plugin-tiled/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/remarkablegames/kaplay-plugin-tiled/graph/badge.svg?token=WriHyIpFCh)](https://codecov.io/gh/remarkablegames/kaplay-plugin-tiled)\n\n[KAPLAY](https://kaplayjs.com/) plugin for loading finite orthogonal [Tiled](https://www.mapeditor.org/) JSON maps.\n\nRead the [blog post](https://remarkablegames.org/posts/kaplay-plugin-tiled/) or see the [demo](https://github.com/remarkablegames/kaplay-tiled-demo).\n\n## Prerequisites\n\nInstall [kaplay](https://www.npmjs.com/package/kaplay):\n\n```sh\nnpm install kaplay\n```\n\n## Install\n\n[NPM](https://www.npmjs.com/package/kaplay-plugin-tiled):\n\n```sh\nnpm install kaplay-plugin-tiled\n```\n\n[CDN](https://unpkg.com/browse/kaplay-plugin-tiled/):\n\n```html\n\u003cscript src=\"https://unpkg.com/kaplay-plugin-tiled@latest/dist/plugin.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nImport the plugin:\n\n```ts\nimport kaplay from 'kaplay';\nimport { tiledPlugin } from 'kaplay-plugin-tiled';\n\nkaplay({\n  plugins: [tiledPlugin],\n});\n```\n\nLoad the assets:\n\n```ts\nimport level from './level.json';\nimport tilesetUrl from './tileset.png';\n\nloadSprite('tileset', tilesetUrl);\n```\n\nRender the tilemap:\n\n```ts\naddTiledMap(level, {\n  sprite: 'tileset',\n});\n```\n\nOr render the tilemap with objects:\n\n```ts\naddTiledMap(level, {\n  sprite: 'tileset',\n  objects: [\n    {\n      match: { properties: { collides: true } },\n      comps: ({ width, height }) =\u003e [\n        area({\n          shape: new Rect(vec2(), width, height),\n        }),\n        body({ isStatic: true }),\n      ],\n    },\n  ],\n});\n```\n\nIf you use TypeScript, load the ambient types explicitly:\n\n```ts\nimport 'kaplay/global';\nimport 'kaplay-plugin-tiled/global';\n```\n\nTo load the plugin using a script:\n\n```html\n\u003cscript src=\"https://unpkg.com/kaplay@latest/dist/kaplay.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/kaplay-plugin-tiled@latest/dist/plugin.umd.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  kaplay({\n    plugins: [KaplayPluginTiled.tiledPlugin],\n  });\n\u003c/script\u003e\n```\n\n## Release\n\nRelease is automated with [Release Please](https://github.com/googleapis/release-please).\n\n## License\n\n[MIT](https://github.com/remarkablegames/kaplay-plugin-tiled/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablegames%2Fkaplay-plugin-tiled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablegames%2Fkaplay-plugin-tiled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablegames%2Fkaplay-plugin-tiled/lists"}