Write gamecode in c++?

Expanding and utilizing the engine via C++.
3 posts Page 1 of 1
Posts: 220
Joined: Wed Apr 15, 2015 3:20 am
by saindd » Wed Apr 15, 2015 5:25 am
Is it possible to dump TorqueScript entirely and write gamecode in C++?
Steering Committee
Steering Committee
Posts: 321
Joined: Thu Feb 05, 2015 1:02 am
by buckmaster » Sun Apr 19, 2015 5:16 am
At this point it'd be a pain. I think it's technically doable, but most classes expect that you'll be writing callbacks in script (a good example is ShapeBase::onCollision). It's not easy to hook into events like that on the source side. This is one of those long-range things we've got on our radar. Having a good C++ API would be really nice, but it's a ton of work.

So, to answer your question, you could do it if you really wanted to, but the engine's not designed with it in mind right now.
Steering Committee
Steering Committee
Posts: 813
Joined: Tue Feb 03, 2015 9:49 pm
by JeffR » Sun Apr 19, 2015 5:58 am
It depends on what you want to handle in C++.

Gameplay classes would jive pretty well with this approach. The main thing that'd stop you from ditching TS entirely is the level loading and server stuff that sets all that in motion. You would need to port that up into C++ first. If you can do that though, the gameplay code/classes itself would be relatively straightforward to do.
3 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest