Skip to content

snollygolly/TextureAtlasConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

TextureAtlasConverter

I made this project to convert XML texture atlases to JSON for use in pixi.js

I downloaded Kenney's numerous game asset packages (which I highly recommend), but all of them came with only an .XML texture atlas. If you have all the separate PNGs, you can generate your own with TexturePacker, but that's kind of a pain. I made this script to do it for me.

Currently it accepts an .XML texture atlas file, and outputs a .JSON texture atlas file (I modeled it off of TexturePacker's "JSON Hash" output).

It was built with PHP 5.5.14

Usage:

php convert.php TextureAtlas.xml

and it will output a JSON in the same folder. Easy peasy!

About

A small script to convert texture atlases to different formats.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages