Skip to main content
GameDev.net gamedev.net
🔒 Locked

Good Example of using Lua and C++ practically in a game

Started by thecodethinker Apr 21, 2013 at 4:12 AM 1 replies 1.7k views
Original Post
thecodethinker
thecodethinker

Can someone give me an example of how I would use lua in a game engine? If you can post some code up here that would be great too!

Thanks for this little bit of help,

Ben

Azaral
Azaral

Look at the game Natural Selection 2. The core of the engine is written in C++, but all the game 'content' stuff is written in Lua. All the code for the marines and the aliens and weapons and structures is Lua files.

It also has 100% dynamic lighting, which is cool.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.