Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on finishing up a game written in C++ with SDL I've been working on for awhile, and I'm starting to ponder how I'm going to distribute it. It has hundreds of images that are loaded and used throughout the game, as well as a couple dozen .wav files for audio effects.

What is the best way to distribute these? Should I just include the folders with all the files? Or is there a way I can package them into a single file, then open and extract them in my application?

What's the best way to go about this?

share|improve this question

I don't know about encryption, but it's relatively easy to put things in ZIP files and have a tool like PhysicsFS handle dynamic decompression at run-time.

It even allows you to support mods easily.

share|improve this answer

Unless there is a reason not to just ship them as plain directories. Less complexity in your code and you can replace content without needing additional tools for packing and unpacking.

Using PhysFS isn't wrong however, having multiple search paths is a good practice, the other features, such as reading from zip files are just a nice addition.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.