Game Development Community

V12 and game code mixed together?

by Wael Zeenni · in Torque Game Engine · 03/18/2001 (8:05 am) · 2 replies

OK form what I understand from some of the previous posts all around these forums,the game code and the engine code all seem to be mixed in with each other.Is this true? Do the game code and the engine code compile into one EXE?(<--eeewwwww) Or is it like Quake3 where the engine is compiled into the executable while the game code is compiled as a DLL? Or is the engine compiled into a dll while the game code is compiled into an EXE?

I would much rather have the engine as a DLL since that would make it brain dead easy for me to just link the engine to any other projects that I create.Well,I guess I can do those modifications since I have the source codes.Will this be possible?

#1
03/18/2001 (10:40 am)
When we received the code it was one big exe. It makes sense that Dynamix developed it this way, they never intended on releasing the code to the public. Thanks to GarageGames we have other plans for that code now. :)

Tim and I have already started cleaning up the code and separating the engine into a library that you will be able to link to your game code. After the fact there is not any advantage to putting the code in a DLL without considerable amounts of work ...and I would bet that you guys want the code sooner than later. Remember you do have the source and could always put it in a DLL for your game.

I keep going back and forth on using DLLs for game engines. Currently the pendulum is on the DLL side but I think you have to architect it from the ground up with that in mind. I have been playing around with the idea of a hybrid DLL architecture (not one big DLL). I still have a lot of work to do before I am convinced that is the way to go but I am liking the way it is coming together.

--Rick
#2
03/18/2001 (11:55 am)
Thanx for the reply Rick.The reason I ask is because I like to keep all my projects as modular as possible.I always prefer to keep the engine apart from the game code and the way I do this is by putting the engine in a DLL.This makes it easy for me to update any patches to the engine without recompiling the game code and stuff.

I guess I'll just wait and see what you guys decide to do.If I feel brave enough..I might just fix up the code in a way to fit into a DLL.But if what you're saying is true that it would require a considerable amount of work,then I'm not too optimistic! But,like I said,we'll just have to wait and see what happens when you guys finally release the code to the public :)