Jump to content

Write gamecode in c++?


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...