What’s Lua?

Dan-Kode

Well-Known Coder
May 24, 2019
433
119
53
github.com
Lua is a Scripting-Language created in 1993 by Roberto Ierusalimschy.

It was implemented using ANSI C and the Language can be implemented into C/C++ Code. Lua wasn't released publicly until the Release of Lua 1.1. Prior to 5.0, Lua came under the BSD License but has since, switched to the MIT License. The Language is designed to be light-weight so it can run pretty much anywhere. As stated, you can embed Lua into pretty much anything.

Lua is primarily used for Video Games and Modding. Some examples of Lua is the Kids-Game, ROBLOX using a modified Version of Lua. Another is GMod which lets you create Mods using Lua.

You can read up more about Lua, here: https://en.wikipedia.org/wiki/Lua_(programming_language)
The official Lua Website is here: https://lua.org
 
  • Like
Reactions: Mandiux

Ghost

Active Coder
Moderator
Apr 19, 2019
303
140
43
Yeah Lua is very common in video games like Dan said. World of Warcraft uses Lua for their interface, so addons can be created for the game quite easily. I have not yet learned any Lua, but am definitely interested in it :)
 
  • Like
Reactions: Dan-Kode

Dan-Kode

Well-Known Coder
May 24, 2019
433
119
53
github.com
World Of Warcraft is another good example of Lua being used for a Video Game.

Lua is quite easy to learn. It's Syntax is almost identical to that of other Languages. So, you should be able to pick it up quite fast. I myself know a bit about Lua but that was through ROBLOX when I used to play it and when I was into Game-Development. I'm actually thinking about continuing to learn the Language.
 

Mandiux

New Coder
Aug 6, 2019
14
7
4
Very cool information! I didn't know how common Lua was in video games, definitely something I would like to further look into.
=]
 

Dan-Kode

Well-Known Coder
May 24, 2019
433
119
53
github.com
Yip. Lua is commonly used in Video Games as it's light-weight, easy to implement and just speeds up Development.

A lot of Game-Engines and APIs that are available use Lua as the Language for Programming Video Games. For APIs, Love2D is a popular Lua API for Video Games. It can be used to create 2D Games using only Lua. And if I can remember, both Cry-Engine and Source also use Lua for making Games.

You definitely should look into it as it's something that's worth looking into if you want to make Games. Especially if you want to make a Game using something that's light-weight.

And of course, Lua isn't just used for Games. It's used for Software, IDEs(ZeroBrane Studio), Apps and much more.
 
  • Like
Reactions: Mandiux

Mandiux

New Coder
Aug 6, 2019
14
7
4
Right on! I currently only have experience in Unity3D, I'm currently working on a 2d game, but wouldn't mind checking out other alleys. Thank you so much for all the information! XD
 
  • Like
Reactions: Dan-Kode

Dan-Kode

Well-Known Coder
May 24, 2019
433
119
53
github.com
Right on! I currently only have experience in Unity3D, I'm currently working on a 2d game, but wouldn't mind checking out other alleys. Thank you so much for all the information! XD
You're welcome for the Info. And how good are you with Unity3D? I'd say I'm decent at it as I used it when I was into Game-Development but that's no longer the case. But yeah, you should check out Lua and how to use it for Games(That is, if you want to get into Game-Development).
 
  • Like
Reactions: Mandiux

Mandiux

New Coder
Aug 6, 2019
14
7
4
It's hard for me to tell if I'm like pro but so far just look up the documentation and code what I need for a game. I would say I am decent. I released a game way back in 2015 for android, and it did horrible haha. Most if anything I just wanted to prove to myself that I would be able to produce a game by myself, so I did an arcade game with 25 levels. No one liked the controls so reviews were harshe lol. I do it as a hobby I have about 10 unfinished projects in my library. One project I am currently working with a co-worker who does graphics, i'll definitely post once we release. I might write up some tutorials on coding in Unity or something for this site, if I get a chance. Here's a quick video of the game I released back in 2015 >> Game Trailer LOL . I definitely enjoy game development and will further research Lua. If I create anything using Lua, I'll definitely post it here.
 
  • Like
Reactions: Dan-Kode