Jump to content
  • Advertisement


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


Picture locations

This topic is 6179 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

It depends on what you need:

Resources - Good if you don''t want people modifying your files, but it''ll bloat your executable, and it makes data harder to edit if you have an artist on your team and whatnot (You have to recompile for every data update)

Quake-Like PAK files - Basically resource outside of the exe. Good for organizational purpose, although it might be slightly annoying to update them. A good solution for when you''re ready to release the game.

Multiple Files - Best for getting rapid work done because no extra proccesing is required. However, a bit more disorganized, and users can change/take anything they wish.

As for speed, it really doesn''t make a large difference, but pak files would probably be the quickest because you could load the entire thing with one fread() call if you wanted to.

AIM: IanWinsAgain ICQ: 60635592 TIM: FaceHat
FaceHat Software -- Wear the hat.

Share this post

Link to post
Share on other sites
Thanks for the information. I just have one more question about storing pictures: should I keep each picture seperate or should I make one large picture with all of them and use coordinates?

Share this post

Link to post
Share on other sites
If you''re making a 2D game, chances are you''ll have multiple "template" files, each of which contains a set of same-size tiles (one for 32x32 tiles, one for 64x64 tiles, etc). Depending on the size of the game, you may also want to separate your template files for organization (one containing all player sprites, one for all enemy sprites, buildings, etc). Unfortuntely, I just started with 3D, so I really can''t help you with 3D information.

As for your original question, I would use Bitmaps for development, but then for release, convert them to some other format (I''m writing my own bitmap/game item converter -- eventually). PAK files are a great idea.

I don''t recommend resources for any but the smallest game just based on the fact that you have to recompile with every change, and the EXE size can get enormous if you have a lot of resources.

Chris Rouillard
Software Engineer

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!