View previous topic :: View next topic |
Author |
Message |
deadimp
Joined: 22 Oct 2008 Posts: 28
|
Posted: Sun Nov 09, 2008 10:03 pm Post subject: Resource management? |
|
|
Does arclib have anything along the ways of resource management?
By this, I mean something to handle the general resource data (not in a raw memory sense) such as images, sprites, sounds, maps, scripts, configuration, etc on the disk - a library that would register the resources, load / unload them when needed, maybe even an editor.
[From which a general sprite editor could be plugged in, with whatever else]
If there's not much along these lines, I've got a general idea for one, and could start it up.
I had a basic (and very, very rough) resource framework in my old game engine in C++. It would be some great practice now that I've got a little better hold on 'conventional' programming.
Once I post the old source to SFNet, I'll be sure to put a link here to give a general view. _________________ deadimp.org
> MegaMan X Crossfire - MegaMan X fan game
Beginning D; Basic experience in PHP, C++, Java, C#, MySQL, HTML, CSS, JavaScript, VB |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Nov 10, 2008 2:41 pm Post subject: |
|
|
There is some basic resource management going on behind the scenes for images, sounds, and fonts. The way it currently works is that every resource that is loaded is kept in memory, and if the resource is loaded again, it simply uses the resource that is already in memory instead of loading the same resource over again.
Do you have any suggestions for resource management? |
|
Back to top |
|
|
deadimp
Joined: 22 Oct 2008 Posts: 28
|
Posted: Wed Nov 12, 2008 12:52 am Post subject: |
|
|
I'm looking for a system where I can map out my resources and types (either with a definition file or intelligent structuring) and manage loading / unloading them in an 'orderly' fashion.
I've just uploaded my old attempts at a MMX fan game to SourceForge. If you download the release 'dgi-latest.zip' and look at the code for the dgi code for resources, you will kind of see the structure I am talking about. [Of course, I don't want something exactly like that. There's a reason why I scrapped it!]
That's if you feel like combing through my ill-formatted/organized code
Would say more, but I'm tired and want to sleep. _________________ deadimp.org
> MegaMan X Crossfire - MegaMan X fan game
Beginning D; Basic experience in PHP, C++, Java, C#, MySQL, HTML, CSS, JavaScript, VB |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|