Ptero Posted June 29, 2015 Share Posted June 29, 2015 Hi, I am porting a game over from Slick2D (a java game library) to pixi.js. Things are going smoothly except that all of my animations are in standard spritesheets where each frame is next to each other in a single .png image. The most common way I see sprite sheets done here are by using JSON. Is there a way to create sprite sheets like i.e. using this fake functionvar spritesheet = new PIXI.SpriteSheet(pathToImage, widthOfEachFrame, heightOfEachFrame, millisecondPerFrame);spritesheet = new PIXI.SpriteSheet('/res/spritesheet.png', 16, 16, 17);or something like that? I don't really feel comfortable using JSON seeing all my sprites are already ready. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.