Jump to content

Exporting sprites to be used in page


Recommended Posts

I've built an html5 game with an action are built with phaser. I'm generating sprites on the fly composing randomly various elements. For some of the icons in the html game interface I wanted to use those same sprites, but can't find how to export a sprite with children into a data url or something that I can put into an Img/background-url

 

is there a way to get the raw pixels out of a sprite and it's children tree as laid out on the phaser canvas?

Link to post
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.

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

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...