Tilemaps
Phaser 4 tilemap guide covering Tiled JSON loading, layers, tile collision, and GPU-accelerated rendering.
- CCM score
- 74 of 100
- skills.sh installs
- 1.3K
- GitHub stars
- 40.8K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers loading Tiled JSON maps, creating tilemap and blank layers, tile collision, dynamic tiles, tile properties, and camera culling
- Explains the split between the
Tilemapdata container andTilemapLayerorTilemapGPULayerrender objects, withaddTilesetImageandcreateLayerusage - Documents collision setup through
setCollision,setCollisionBetween,setCollisionByProperty, andsetCollisionByExclusion, plus per-tileTilefields - Designed for Phaser 4 developers building tile-based levels from Tiled JSON, with WebGL-only
TilemapGPULayerlimits noted
Install
$ npx -y skills add phaserjs/phaser --skill tilemaps -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Tilemaps
Phaser Tilemaps render tile-based levels from Tiled JSON, CSV, or raw 2D arrays. A
Tilemapholds parsed map data and provides methods to add tilesets, create layers, set collision, and query tiles. Layers (TilemapLayerorTilemapGPULayer) are the Game Objects that actually render tiles. Phaser supports orthogonal, isometric, hexagonal, and staggered maps.
Key source paths: src/tilemaps/Tilemap.js, src/tilemaps/TilemapLayer.js, src/tilemaps/TilemapGPULayer.js, src/tilemaps/TilemapLayerBase.js, src/tilemaps/Tile.js, src/tilemaps/Tileset.js, src/tilemaps/TilemapFactory.js, src/tilemaps/components/, src/tilemaps/parsers/tiled/
Related skills: ../loading-assets/SKILL.md, ../sprites-and-images/SKILL.md
Quick Start
class GameScene extends Phaser.Scene {
preload() {
// Load the Tiled JSON and the tileset image
this.load.tilemapTiledJSON('map', 'assets/level1.json');
this.load.image('tiles', 'assets/tilesheet.png');
}
create() {
// Create the tilemap from cached JSON
const map = this.add.tilemap('map');
Details
- Repository
- github.com/phaserjs/phaser
- Categories
- Game Development, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the Phaser tilemaps skill help with?
The tilemaps skill covers working with tilemaps in Phaser 4, including loading Tiled JSON maps, creating tilemap layers, tile collision, dynamic tiles, tile properties, and tilemap camera culling. It also explains the difference between a Tilemap data container and the TilemapLayer or TilemapGPULayer objects that render tiles.
How do I install the Phaser tilemaps skill?
Run npx -y skills add phaserjs/phaser --skill tilemaps -y in your project. Once installed, the agent gains knowledge of Phaser tilemap loading, layers, collision setup and tile properties.
Does the skill support Tiled maps with collision and tile properties?
Yes, the skill covers loading Tiled JSON maps, tile collision and tile properties. It describes several ways to enable collision, including by tile index, by range, by tile property and from Tiled collision editor shapes.
Which other skills are in the Game Development category?
In the Game Development category, the tilemaps skill sits alongside higgsfield-game-generation, game-feel, game-ui-ux, godot-gdscript-patterns and level-design. Its focus is narrower than level-design, centered on Phaser's tilemap API.
More from phaserjs/phaser
All 8Similar to Tilemaps
More Game Developmentgame-setup-and-configphaserjs/phaser1.6K installsPhaser 4 game setup and GameConfig reference covering renderer, scaling, pixel art, FPS, and boot flow.
v4-new-featuresphaserjs/phaser1.3K installsPhaser 4's new rendering features: Filters, RenderNodes, CaptureFrame, Gradient, Noise, and GPU layers.
generate2dmap0x0funky/agent-sprite-forge332 installsGenerate and revise 2D game maps with image-generated art, collision, navigation checks, and engine export.
godot-tilemap-masterythedivergentai/game-dev-agentic-skills526 installsExpert TileMapLayer and TileSet blueprint for grid-based 2D levels, covering autotiling and destructible tiles.
phaser-gamedevchongdashu/phaserjs-tinyswords1.1K installsPhaser 3 scene-based game development with Arcade and Matter physics, tilemaps, animations, and input handling.
godot-3d-world-buildingthedivergentai/game-dev-agentic-skills654 installs3D level-building patterns for GridMap tilesets, CSG greybox geometry, occlusion, and runtime GridMap builders in Godot.