🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

AI / LUA / C++ / Game Math Library Questions

Started by
2 comments, last by ErnieDingo 6 years, 10 months ago

Hello,

I am currently working on a custom engine that is c++ based. For now, I am trying to do an integration of Lua into the engine. I have read the forum of the pros and cons, the logic behind Lua and c++ engine (low level scripting or high level scripting).

I still have doubts whether should I bind game math library (GLM;vector3d etc....) into Lua as well.

Currently, the LUA script controls how the AI reacts and the control setup for the player. (WASD for movement etc).

The game is focusing on FPS.

Advertisement

To my opinion, yes. Your scripting should behave just like your engine mathematics, whether for accuracy, quickness, and also what it provides (maybe lua will lack some of your mathematical types). The latter works also for the interface (so, same name for functions). This looks essential so that one could easily work with both the script and the sources of the engine.

Im having the same thoughts about what I need to do in LUA for my own engine and scripting also.  Firstly, picking the right LUA library (my project is in C# also).

But I feel I will need to do as you are doing, bind my complex functions and leave the very basic scripting to LUA.  

Interested to know what your goal with the LUA scripting will be.  

 

Indie game developer - Game WIP

Strafe (Working Title) - Currently in need of another developer and modeler/graphic artist (professional & amateur's artists welcome)

Insane Software Facebook

This topic is closed to new replies.

Advertisement