Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blt from resource files?
#1
Well, So I learned how to use resource files with VB, Im actually using one for some of the GUI in my game. Although, I was wondering if you would be able to put the sprites, tiles, and so on... Into the resource file and blt from it?

If you have any experience with resource files it would be greatly appreciated.

And if you would like to learn more about them check out this link;
http://visualbasic.about.com/od/usevb6/a/ResVB6.htm
Reply
#2
Resource files should be fully supported. DirectX does (at least I believe, been a long time since I've used DX7) have a ...FromResource (LoadSurfaceFromResource is it?) function for the loading. Though, I am quite heavily against resource files myself unless its for a small group of something highly relevant to one another such as the icons of your web browser. They just become difficult to update and manage along with updating a single graphic often requires updating the whole resource file. You can pretty much forget about using any form of encryption on it, too, unless you plan to do an encryption on every file individually before putting it in the resources (in which case you'd also have to write your own Load From Resource function), which makes things even messier. Reason I mention this is that many people seem to often associate resource files with security.
Reply
#3
Resource files are a bitch.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#4
Spodi Wrote:Resource files should be fully supported. DirectX does (at least I believe, been a long time since I've used DX7) have a ...FromResource (LoadSurfaceFromResource is it?) function for the loading. Though, I am quite heavily against resource files myself unless its for a small group of something highly relevant to one another such as the icons of your web browser. They just become difficult to update and manage along with updating a single graphic often requires updating the whole resource file. You can pretty much forget about using any form of encryption on it, too, unless you plan to do an encryption on every file individually before putting it in the resources (in which case you'd also have to write your own Load From Resource function), which makes things even messier. Reason I mention this is that many people seem to often associate resource files with security.

Thank's for the advice and help. :]

@Robin Eh, They can be.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)