wyrmmage
2006.12.22, 06:00 PM
Hello everyone :)
I'm currently working on the structure for an MMORPG. (And yes, I can hear many of you scoffing as you read this, perhaps especially the people who have read some of my other posts :P ).
In all truth, I don't really expect to make a successful MMORPG, but I thought that I would go ahead and try because working on a tough project is often the best way to learn essential things about game programming.
Anyway, enough background and excuses, I'm now ready to lay out my problem; When I started this project, I knew that my code would have to be portable, and I would have to find a way to be able to make fairly large changes to gameplay while having minimal file upload size for the update. To this end, I've created a rather slow 3D object/texture loader that controls certain things in the game. Basically, I have these objects:
A game object. The game object reads a text file to find out what gameManager objects there are, and loads the templates for them. Then I have the gameManager object, which loads 3D object templates (like the 3D object for a monster). Each 'object' object has shape objects, which are essentially the shapes that the object mesh is made out of.
This works quite well for loading a pre-defined template, and so I have completed stage one of my project. Now what I need to do is to have some code in a different file that uses this to actually make objects. If I need three ogres, I'll have the object class load the template for the ogres, then I'll have this seperate program actually make the ogres in their respective locations.
I'm not quite sure how to do this (especially on a Mac!). On Windows, I was planning on using a DLL file, I haven't started this because I wanted to get input from the Mac side of things first.
Is there an equivalent to DLL files for the Mac? How do you normally have code in a seperate file that is used in your main program? Perhaps I am looking in the wrong direction, but it's the only way that I see it...
Thanks in advance for the advice :)
-wyrmmage
I'm currently working on the structure for an MMORPG. (And yes, I can hear many of you scoffing as you read this, perhaps especially the people who have read some of my other posts :P ).
In all truth, I don't really expect to make a successful MMORPG, but I thought that I would go ahead and try because working on a tough project is often the best way to learn essential things about game programming.
Anyway, enough background and excuses, I'm now ready to lay out my problem; When I started this project, I knew that my code would have to be portable, and I would have to find a way to be able to make fairly large changes to gameplay while having minimal file upload size for the update. To this end, I've created a rather slow 3D object/texture loader that controls certain things in the game. Basically, I have these objects:
A game object. The game object reads a text file to find out what gameManager objects there are, and loads the templates for them. Then I have the gameManager object, which loads 3D object templates (like the 3D object for a monster). Each 'object' object has shape objects, which are essentially the shapes that the object mesh is made out of.
This works quite well for loading a pre-defined template, and so I have completed stage one of my project. Now what I need to do is to have some code in a different file that uses this to actually make objects. If I need three ogres, I'll have the object class load the template for the ogres, then I'll have this seperate program actually make the ogres in their respective locations.
I'm not quite sure how to do this (especially on a Mac!). On Windows, I was planning on using a DLL file, I haven't started this because I wanted to get input from the Mac side of things first.
Is there an equivalent to DLL files for the Mac? How do you normally have code in a seperate file that is used in your main program? Perhaps I am looking in the wrong direction, but it's the only way that I see it...
Thanks in advance for the advice :)
-wyrmmage