What problem does it solve?
Tilemaps in Phaser can be complex to wire up correctly—loading Tiled JSON, matching tileset/layer names, creating render layers, and getting reliable collision and tile properties working.
Core Features & Use Cases
- Load and render Tiled maps: Parse Tiled JSON and create tilemap layers from cached data.
- Configure tilesets and layers: Link tileset names from Tiled to loaded textures, then create CPU or GPU layers as needed.
- Set collision and leverage tile metadata: Enable Arcade Physics collision via indexes, ranges, properties, exclusions, collision groups, and per-tile callbacks; read custom tile properties for gameplay rules.
- Use cases: Platformers and RPG maps created in Tiled, dynamic/destructible tile gameplay using runtime tile edits, and performance-focused large levels using GPU layers (orthographic, WebGL only).
Quick Start
Load your map JSON with this.load.tilemapTiledJSON and your tileset image with this.load.image, then create the tilemap, add the tileset image using the exact tileset name from Tiled, create a layer using the exact Tiled layer name, and finally enable collision with ground.setCollision([1, 2, 3]).