Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Loader
/
Tile Maps
Phaser 4.1.0
Phaser 4 examples
Tile Maps
5
examples
Examples
5
Load Tilemap from Local JSON Object
Demonstrates how to create a Tiled map by passing a local JavaScript object directly to the loader, rather than fetching an external JSON file.
Load Tilemap JSON
Demonstrates how to load a Tiled JSON file using the Loader, create a tilemap from the data, and display a layer with simple camera controls.
Load Tilemap JSON from Object
Demonstrates loading a Tiled JSON map by passing a configuration object to the loader instead of individual arguments.
Load Tilemap via Scene Payload
Demonstrates how to preload tilemap JSON and tileset image assets directly through the Scene configuration object using a pack file definition.
Loading Tilemaps with Normal Maps
Demonstrates how to load a Tiled JSON map with a corresponding normal map to enable dynamic 2D lighting effects on map layers.