Game Development Community

Can Torque work with my C++ program?

by peacerosetx · in General Discussion · 02/14/2009 (6:42 am) · 4 replies

Greetings all,

Peace. This is my first post. Tried to search c++ in the forums and did not get a hit. The problem is that I have a program in C++ that is almost complete. I wanted to know can I simply use Torque to code the graphic elements of my program? In other words can my program written in C++ program work with the torque engine wand torque script, or does my entire program have to be re-written in the script? Thank you.

Peace.

About the author

Recent Threads


#1
02/14/2009 (7:03 am)
I'm not sure. I think the creators of Minions of Mirth implemented Python into the Torque Game Engine.
#2
02/14/2009 (7:17 am)
Thank you xxShanexx09 for your reply. Wow so every one who uses the engine writes their *entire* code in Torquescript? I did not know that the script could compile in visual studio?

Oh well, I don't really want to re-code all my classes into a script, there are thousands of lines of code and approximately twenty - thirty classes.

I was using the Irrlicht engine which was fine, but I wanted more features (to make my life easier :) oh well--I can code what I needed, just thought if Torque had it already could bring the game to market sooner...

Take care...peace
#3
02/14/2009 (8:53 am)
If you purchase the engine you get access to the source code which is all written in C++ so yes you could add your already written C++ code into the game.

You could write an entire game in C++ without using any of the scripting functions - but it'd take you longer to do it that way as scripting is a quicker and simpler way to develop once you learn it's syntax.



#4
02/17/2009 (3:08 pm)
@peacerosetx

Yes. In fact, it's easy to add new functionality in C++. It's also easy to add new script calls to access that functionality from your script. I wrote an entire chess game in C++ that played in the prompt. It took maybe 2 hours to add it to TGB and give it a GUI. :)