Jump to content

Are you supposed to give away all your graphics?


hejohoo
 Share

Recommended Posts

I am fairly new to html5. I am just wondering, since you give away the "whole package" when you upload or send an html5 game is it just the accepted standard that we are expected to just give away all our graphics in neat spritesheets? There is no way around this?

Link to comment
Share on other sites

  • 2 weeks later...

One option is to embed your images in your code as Base64-encoded data URIs. Examples of how to do this here and here.

 

Another option, if you're using Haxe, is to integrate your images with your game as Haxe Resources instead of external files.

 

Both methods do not make extracting the images from your game impossible though, just a bit more inconvenient.

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.

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

  • Recently Browsing   0 members

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