Qbasicnews.com

Full Version: Saving Sprites Professionally (C++)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to be able to load and save sprites, but I don't want them to be (easily) edited or read from in other editors. What are some well-compressed(whatever the word is) styles for saving images that can be used with DirectDraw?
Ok well you could just use bmp/png while you are developing the game, and when you want to release it, encrypt them with a password or some trickier method.

Just search for encryption on the forum.
I wrote an archiver for VB which can extract bitmaps/wavs directly to a surface/sample. Won't help you in C/C++, but you can see how it's done anyway.
Quote:I wrote an archiver for VB which can extract bitmaps/wavs directly to a surface/sample. Won't help you in C/C++, but you can see how it's done anyway.

It would greatly help him as he would understand the code readily. All he has to do is translate it to C++ or any other lang. ;*)
Blearg, I have to go digging through CDs to find it.

By-the-by, the code ain't pretty, but it does work and allows archives up to 2GB in length.

I'll dig it out after some sleeeeeeeeeeeeep thooooooough. Wink
LOL. You can close yer eyes now......

Count sheeps. :*)