Archived

This topic is now archived and is closed to further replies.

edwinnie

sound & bitmaps all together!

Recommended Posts

is there a way to "incorporate" all these sound and bitmaps into some file, so that they are not "loose".

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
get zLib. compress them into a zip, and uncompress when you read; that is one way.

Share this post


Link to post
Share on other sites
hmm...what abt the resource script thingy?

u see, the idea was to "compile them together" if possible,
so that if u use the program somewhere else, u dun need to
port the sound and bitmap files.

does doing the resource script help in such a way?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You want to compile them into your program? I guess you could, but then I''m pretty sure you would have to change the way you load the files.. because they are not files, they are now a resource. Err, um. (something like that)

Share this post


Link to post
Share on other sites
Loading them as resources will make your *.exe much larger. What I did was create my own file type that is basically a header and then all the graphics files (I did the same thing for my sound files, too).

The header was just a struct that contained info on the files other files (# of files, file sizes, etc.).

I didn''t really need compression so I just used my own. Plus if I do need compression in the future I can just write my own codec to go along with it.

I prefer to write my own just because I learn a lot more that way.

MSVC++ 6
DirectX 7

Share this post


Link to post
Share on other sites