Loading Images Sprite Using Texture Packer Data File

Hi I am new to Corona and I want to know if it is possible to use the Texture Packer datafile to load the images ?

The file format is below, how can I load it into a table? that will be used with graphics.newImageSheet()?

invsheet.png

format: RGBA8888

filter: Linear,Linear

repeat: none

droid1

  rotate: false

  xy: 0, 0

  size: 32, 32

  orig: 32, 32

  offset: 0, 0

  index: -1

droid2

  rotate: false

  xy: 32, 0

  size: 32, 32

  orig: 32, 32

  offset: 0, 0

  index: -1

eprojectile

  rotate: false

  xy: 64, 0

  size: 6, 14

  orig: 6, 14

  offset: 0, 0

  index: -1

Not sure if that’s what you meant, but there is a Texture Packer export configuration for Corona.

Check out this link for more information:

https://www.codeandweb.com/texturepacker/getting-started/corona-imagesheet

Not sure if that’s what you meant, but there is a Texture Packer export configuration for Corona.

Check out this link for more information:

https://www.codeandweb.com/texturepacker/getting-started/corona-imagesheet