What is Lua?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
JaxDragon
Chaos Rift Junior
Chaos Rift Junior
Posts: 395
Joined: Mon Aug 04, 2008 2:03 pm
Current Project: Kanoba Engine
Favorite Gaming Platforms: PS3, PC
Programming Language of Choice: C++
Location: Northeast NC

What is Lua?

Post by JaxDragon »

I have heard a lot about lua, but I don't know what it is. I know it is used in WoW private servers, Roblox, and Elysian Shadows(to name a few), but I think I would benefit from someone explaining to me just what Lua is.
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Re: What is Lua?

Post by trufun202 »

Lua script is a scripting language. Basically it can invoke methods exposed by C++. So your engine can expose a method, such as GetPlayerHP(). Lua can then call that method to retrieve the player's HP and use it as needed.

So, essentially, your entire "game" can be written in script files, rather than the actual engine. Its powerful, trust me.

I think Falco explains it best in this video:

Falco's Game Development Marathon: Day 2
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
Post Reply