• Advertisement
Sign in to follow this  

Embedding file assets into the program

This topic is 3319 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How would you compile a program, especially a game that uses a lot of graphical/sound assets, in a way that all the non-code data is in the executable file or app? I especially want to do this for a game I'm making on the Mac platform, and some appls as simple as drag-and-drop to install. Also becuase I have no plans to make add-on skins for my game. Do I use compression libraries? Maybe also Imagemagick for the graphics?

Share this post


Link to post
Share on other sites
Advertisement
in the case of the mac you get some of this for free, as the way the mac bundles its applications it lumps them into a folder that can make it look all nice and neat. I would suggest something like a "ZIP" file for the game assets... When you EXE loads it would just uncompress this zip file and load the assets, A lot of games use this system. Some of the reason why this system is nice are is that it keeps things organized, it can also make patching much easier, as well as save space and if done right prevent people from messing with your assets.

Some examples are .BIG files for some of EAs games or MPQ files for blizzard games, these are just compressed assets.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement