Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Shoebox Configuration File for exporting atlas for Phaser


netcell
 Share

Recommended Posts

  • 1 year later...

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

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...