Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Do I Have To Specify Image Sizes In *.JSON File?

$
0
0

Hi.

Working on PNG image sprite core today.
I looked at the demo's *.JSON file and see that is has image sizes.
Must I specify image sizes in the *.JSON file?

"blob.png":
{
	"frame": {"x":55,"y":2,"w":32,"h":24},
	"rotated": false,
	"trimmed": false,
	"spriteSourceSize": {"x":0,"y":0,"w":32,"h":24},
	"sourceSize": {"w":32,"h":24},
	"pivot": {"x":0.5,"y":0.5}
},

(my game would have 100's of images and the above would be cumbersome.

Let me know, Thanks!

JeZxLee


Viewing all articles
Browse latest Browse all 3980


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>