Jump to content

Spritesheet help


Recommended Posts

I am writing a game making tool and I am porting a Javascript and HTML5 code generator from using EaselJS to PandaJS and I was just wondering if it is possible to construct a spritesheet in the same code file as the game's code file so I do not have to use a separate JSON file. Is there a class that I can use for doing this and please can somebody give me some code to get me started?


It might help if I told you that the sprites are layed out side-by-side but each frame has varying widths and heights. I do have a little bit of a spritesheet algorithm built-in but a very basic one.


Thanks all

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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