netcell Posted August 18, 2015 Share Posted August 18, 2015 Just in case someone needs it (cause I did). This configuration change the template to export json file compatible with Phaser game.load.atlas function Download from my repo: https://github.com/netcell/PhaserShoeBoxConfig Just download the .sbx file and double click it. gaelbeltran, tywang2006 and askariwa 3 Link to comment Share on other sites More sharing options...
fejao_maravilha Posted May 16, 2017 Share Posted May 16, 2017 It works! Thanks a lot @netcell Im using Phaser + Shoebox v3.6.5: 1) I exported my spritesheet choosing the "pixi" option (it will generate a .js file) 2) To load: game.load.atlasJSONHash('atlasTexture', 'assets/spritestest.png', 'assets/spritestest.js'); 3) To add: var test = game.add.sprite(0, 0, 'atlasTexture', 'HUD_barra_azul.png'); obs: "atlasTexture" is my spritesheet and 'HUD_barra_azul.png' is my sprite. #shoebox #phaser #shoebox+phaser Sir_G 1 Link to comment Share on other sites More sharing options...
Recommended Posts