Monday, 15 September 2014

javascript - If the CreateJS library supports the JSON output formats of Texture Packer -


I was using CreateJS for a little while. I have a problem loading an image that was made by Texture Packer, and I found the JSON file like this:

<">" code ": {" filename ":" aim_dot ", "Frame": "," "118", "Y": 4, "Y": 76, "H": 76}, "Rotated": Wrong, "Trimmed": Wrong, "Spot Source Size" {"X": 0, "Y": 0, "Y": 76, "H": 76}, "Source:": {"w": 76, "h": 76}}, {"filename" Wrong, "trimmed": wrong, "sporestorosis": {"x": "border", "frame", ":" 385, "Y": 250, "h": 100}, "rotated" : 0, "Y": 0, "W": 250, "H": 100}, "Source Size": {"w": 250, "h": 100}}]}

When Bitmap represents this type of image:

  var bitmap = new createjs.Bitmap ("imagePath.jpg");  

But if the image is an image sprites, can I use a bitmap like CSS preset?

You should take a look at the Sprite Sheet -class:

In TexturePacker, you can select itgels as an output format, so use JSON EaselJS Sprite Shaw Without T and a great way to generate EaselJS Sprasshits modifications will spritesheet.js ().


No comments:

Post a Comment