Irrlicht Newton GD tutorial: first script
As we discussed, we will describe the whole game in scripts, and the core functionality
we will define in the core. In this chapter we will be adding Lua to our application.
You do not need to download Lua itself - you’d better install it with your system’s
package manager (yum
or apt
or whatever your Linux uses, brew
for OSX…).
Dependencies
The only thing you need to download from Internet this time is Lua wrapper called luacppinterface. So go and get it from Github.
And unpack it… right to the source
directory of our project! That’s right! That’s
really small library so it will not pollute your project with tons of files.
Now, I mentioned dependency managers earlier. This is how we will handle them in our C++ application - we will simply put the sources of all the libraries we depend on, with the versions we depend on, right in our project. Given that, you may put Irrlicht there as well - you are free to do anything with our project!