Phaser 4 examples

Texture Atlas Json

  • 11 examples

Examples 11

Accessing Texture Atlas MetadataDemonstrates how to load a texture atlas using an inline JSON object and retrieve its custom metadata, such as version and image format, via the texture's customData property.Atlas with Normal Map from Configuration ObjectDemonstrates how to load a Texture Atlas and its associated Normal Map using a single configuration object, enabling dynamic lighting for all frames within the atlas.Get Atlas Custom Frame DataDemonstrates how to access and use custom data fields defined within a Texture Atlas JSON, such as using custom properties to set sprite tints.Load Atlas with JSON ObjectDemonstrates how to load a Texture Packer atlas by passing a local JSON object directly to the loader instead of using an external file.Load Atlas With Local JSONThis example demonstrates how to load a Texture Atlas by passing a local JavaScript object as the frame data instead of loading an external JSON file.Load Texture Atlas From PayloadDemonstrates how to load a Texture Atlas using a pack object in the Scene configuration, allowing assets to be loaded automatically when the Scene starts.Load Texture Atlas via Asset PackDemonstrates how to load a texture atlas by defining it within an external JSON Asset Pack file and then accessing its frames.Load Texture Atlas via Configuration ObjectDemonstrates how to load a texture atlas by passing a configuration object to the loader and accessing its frames to display images.Load Texture Atlas with JSONDemonstrates how to load a texture atlas using a JSON file, retrieve all available frame names, and display them randomly on the screen.Load Texture Atlas with Normal MapDemonstrates how to load a Texture Packer JSON atlas alongside a normal map to enable dynamic lighting effects on individual atlas frames.Load, Remove and Reload AtlasDemonstrates how to load a texture atlas, remove it from the texture manager, and then reload a different atlas file using the same key in another scene.