GoldFire Posted April 11, 2017 Share Posted April 11, 2017 After going over the advanced rendering tutorial (http://phaser.io/tutorials/advanced-rendering-tutorial/part6), I started working on adding compressed textures into our game. Based on the example in that tutorial, it seemed like this would be a perfect match using an atlas as is shown in the example. However, digging into the API, only loading through game.load.image or game.load.texture supports passing in a formats object. Is this not actually supported with an atlas or am I just missing something? Link to comment Share on other sites More sharing options...
GoldFire Posted April 19, 2017 Author Share Posted April 19, 2017 For anyone interested, loading of compressed textures is fixed in Phaser-CE 2.7.7. samme 1 Link to comment Share on other sites More sharing options...
KevinYen Posted June 13, 2017 Share Posted June 13, 2017 1. Load compressed texture as arraybuffer game.load.binary(key, url) 2.Load atlas data (json file) game.load.json(key, url) 3.Add frameData & atlasData to game.cache.image Link to comment Share on other sites More sharing options...
Recommended Posts