GoldFire Posted April 11, 2017 Report 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? Quote Link to comment Share on other sites More sharing options...
GoldFire Posted April 19, 2017 Author Report Share Posted April 19, 2017 For anyone interested, loading of compressed textures is fixed in Phaser-CE 2.7.7. samme 1 Quote Link to comment Share on other sites More sharing options...
KevinYen Posted June 13, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.