Jump to content

phaser frame


BrianWong
 Share

Recommended Posts

I use " game.load.atlasJSONHash('bomb','explode.png','bomb.json');" to load a image,

and the content in "bomb.json ":

{

"filename": "bomb_1.png",
"frame": {"x":0,"y":0,"w":128,"h":128},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":100,"h":100},
"sourceSize": {"w":128,"h":128}
}
I wanna ask how to use the "spriteSourceSize" and the "sourceSize"  ?I changed the value but it didn't work at all.
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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