Jump to content
  • 0

Sprite (.spr) file structure


stderr

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  09/04/14
  • Last Seen:  

Hi.

I did some search on Google and here but I wasn't able to find the structure of a .spr file. I am looking for something like:

header: w bytes
...: ... bytes
image count: x bytes
...: ... bytes
image n dimensions: y bytes
image n pixels: z bytes
....

Does anyone know where I can find this information?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  667
  • Reputation:   674
  • Joined:  11/12/12
  • Last Seen:  

You can check roBrowser's sprite loading; it's very clear and on point: https://github.com/vthibault/roBrowser/blob/master/src/Loaders/Sprite.js

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  09/04/14
  • Last Seen:  

1 hour ago, Tokei said:

You can check roBrowser's sprite loading; it's very clear and on point: https://github.com/vthibault/roBrowser/blob/master/src/Loaders/Sprite.js

indeed it seems very clear, thanks for the quick answer. I'll take a look into it.

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.

Guest
Answer this question...

×   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.

×
×
  • Create New...