{"id":23426913,"url":"https://github.com/pixijs-userland/tilemap","last_synced_at":"2025-10-07T01:58:10.024Z","repository":{"id":37180750,"uuid":"45563203","full_name":"pixijs-userland/tilemap","owner":"pixijs-userland","description":"Rectangular tilemap implementation for PixiJS","archived":false,"fork":false,"pushed_at":"2025-03-29T16:54:08.000Z","size":36862,"stargazers_count":301,"open_issues_count":50,"forks_count":60,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-15T23:29:31.462Z","etag":null,"topics":["canvas","tilemap","webgl"],"latest_commit_sha":null,"homepage":"https://userland.pixijs.io/tilemap/docs/","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/pixijs-userland.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,"zenodo":null}},"created_at":"2015-11-04T19:46:21.000Z","updated_at":"2025-05-11T19:37:22.000Z","dependencies_parsed_at":"2024-01-29T22:09:33.170Z","dependency_job_id":"1db968fc-d3de-48b8-91ae-0204e0d9ca80","html_url":"https://github.com/pixijs-userland/tilemap","commit_stats":{"total_commits":281,"total_committers":20,"mean_commits":14.05,"dds":0.6334519572953736,"last_synced_commit":"fb589c9c3f062ed19c7cbfca0a3448d1cb47a7fb"},"previous_names":["pixijs/pixi-tilemap","pixijs-userland/tilemap","pixijs/tilemap"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixijs-userland%2Ftilemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixijs-userland%2Ftilemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixijs-userland%2Ftilemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixijs-userland%2Ftilemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixijs-userland","download_url":"https://codeload.github.com/pixijs-userland/tilemap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"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":["canvas","tilemap","webgl"],"created_at":"2024-12-23T06:07:14.481Z","updated_at":"2025-10-07T01:58:04.980Z","avatar_url":"https://github.com/pixijs-userland.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @pixi/tilemap - PixiJS Tilemap Kit\n\n[![Automation CI](https://github.com/pixijs-userland/tilemap/actions/workflows/main.yml/badge.svg)](https://github.com/pixijs-userland/tilemap/actions/workflows/main.yml)\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://i.imgur.com/hfoiBRk.png\" width=\"1280px\" /\u003e\n\u003cp/\u003e\n\nThis package provides a low-level rectangular tilemap implementation, optimized for high performance rendering and a\nout-of-the-box canvas fallback.\n\n## Version Compatiblity\n\n| PixiJS | PixiJS Tilemap Kit |\n|--------|--------------------|\n| v4.x   | v1.x               |\n| v5.x   | v2.x               |\n| v6.x   | v3.x               |\n| v7.x   | v4.x               |\n| v8.x   | v5.x               |\n\n## Installation :package:\n\n```bash\nnpm install --save @pixi/tilemap\n```\n\nYou can also use the browser bundle:\n\n```\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@pixi/tilemap@latest/dist/pixi-tilemap.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nIn short, the tilemap you create will render each tile texture at the provided position and dimensions. Generally, a\nspritesheet is used to load the tileset assets:\n\n```ts\nimport { Assets } from 'pixi.js';\nimport { CompositeTilemap } from '@pixi/tilemap';\n\nAssets.add('atlas', 'atlas.json');\nAssets.load(['atlas']).then(() =\u003e\n{\n    const tilemap = new CompositeTilemap();\n\n    // Render your first tile at (0, 0)!\n    tilemap.tile('grass.png', 0, 0);\n});\n```\n\n`CompositeTilemap` is actually a lazy composite of layered `Tilemap` instances. A `Tilemap` has a fixed number of tile\ntextures (the tileset) it can render in one go. Usually, `CompositeTilemap` abstracts away this limitation in a robust\nenough manner.\n\n### Demos\n\n* [Basic Demo (WebGL)](https://userland.pixijs.io/tilemap/examples/basic.html)\n* [Basic Demo (WebGPU)](https://userland.pixijs.io/tilemap/examples/basic.html?preference=webgpu)\n\n### Settings\n\n```ts\nimport { settings } from '@pixi/tilemap';\n```\n\n| Setting | Description |\n|---------|-------------|\n| `TEXTURES_PER_TILEMAP` | Temporarily switched off |\n| `TEXTILE_UNITS` | Temporarily switched off |\n| `use32bitIndex` | There's also a limitation on 16k tiles per one tilemap. If you want to lift it, please use PixiJS v5.1.0 and following setting `settings.use32bitIndex = true;` |\n\n## RPGMaker\n\nCanvas fallback is 5x slower than vanilla rpgmaker. WebGL version is faster and doesnt use extra textures.\n\n### RPGMaker Demo\n\n* [WebGL Demo](https://userland.pixijs.io/tilemap/examples/)\n  * [60% Scale](https://userland.pixijs.io/tilemap/examples/?scale=0.6)\n  * [140% Scale](https://userland.pixijs.io/tilemap/examples/?scale=1.4)\n* [WebGL Retina Demo](https://userland.pixijs.io/tilemap/examples/?resolution=2)\n  * [60% Scale](https://userland.pixijs.io/tilemap/examples/?resolution=2\u0026scale=0.6)\n  * [140% Scale](https://userland.pixijs.io/tilemap/examples/?resolution=2\u0026scale=1.4)\n* [WebGPU Demo](https://userland.pixijs.io/tilemap/examples/?preference=webgpu)\n\n## More Tutorials\n\n* [Alan01252 Tutorial](https://github.com/Alan01252/pixi-tilemap-tutorial)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixijs-userland%2Ftilemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixijs-userland%2Ftilemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixijs-userland%2Ftilemap/lists"}