Scripting / c++ question
by Drew Wicker · in Torque Game Engine · 11/24/2003 (11:12 am) · 1 replies
What percentage of a typical tge game is made up of scripting, c++? I am currently designing a completely new game and need to know what to focus on. My game will definitely not be cutting edge. Furthermore, what elements of the game are typically coded in each language. For example, would I code simple particle systems in script or c++? How would I communicate any overlap between the languages? I know these are general questions, but I really need help starting out. I really appreciate any help.
Associate Ben Garney
Most of the "glue" is in script. You write gui controls in C++, then manipulate them in script. The particle engine is in C++ but you describe particle's appearances and behavior in script. The physics code is in C++ but when you want to do damage or have items be picked up or what not, you do it in script.
The scripting language is very tightly married to the C++ code. Check out the docs on the console system, the docs on NetObject and SimObject and ConsoleObject, for more information on how this works..
Best thing to do is to hack a bit on the existing scripts - try to acheive a specific effect. Once you've done that a bit, come ask more questions; a little experience will go a long way towards helping you get specific questions figured out.