Lua is a powerful, fast, lightweight, embeddable scripting language. Lua is widely used as a scripting language by game programmers, perhaps owing to how easy it is to embed, its fast execution, and its short learning curve.

learn more… | top users | synonyms

3
votes
2answers
2k views

What shall I choose between CoronaSDK or AirPlay?

1st Question is I want to write a board game for iOS and Android so I'm coming up with CoronaSDK and AirPlay. Since I have a mac, development platform is not an issue but the problem is which one ...
8
votes
2answers
845 views

How would you code an AI engine to allow communication in any programming language?

I developed a two-player iPhone board game. Computer players (AI) can either be local (in the game code) or remote running on a server. In the 2nd case, both client and server code are coded in Lua. ...
4
votes
2answers
2k views

Accessing C++ class members with LuaPlus

I've implemented LuaPlus in my engine eventmanager successfully and really like the flexibility I gained. But I'm still not exactly where I want to be, because I can't link my c++ classes to a Lua ...
10
votes
3answers
10k views

Good Tutorial For Lua and LÖVE

I want to make a very simple 2D game, and have been reading a lot of good things about LÖVE, so I want to try it out. However I can't seem to find any good tutorials. The ones on the LÖVE page are ...
12
votes
5answers
3k views

What is the recommended library for using Lua from C++? [closed]

I am currently planning how to integrate Lua scripting in my 2D Game Engine, and i would like to go straight to the most adequate solution for having C++ classes and objects exposed. I've read this ...
4
votes
3answers
688 views

What technology would you use to communicate between an iOS game and a Lua-based AI server?

What technology would you use to communicate between a two-player,turn-based, board game (like checkers or Othello) running native on iOS, and a remote game server The remote game server is just the ...
6
votes
1answer
3k views

Entity system in Lua, communication with C++ and level editor. Need advice

I have a 2D basic editor written in Qt, and I'm in the process of adding entities. I want the editor to be able to receive RTTI information from entities to change properties, create some logic being ...
11
votes
8answers
17k views

Love2D engine for Lua; What about 3D? [closed]

Lua has been really awesome to learn, it's so simple. I really enjoy scripting languages, and I had an equally enjoyable time learning Python. The Love engine, http://love2d.org/, is really awesome, ...
4
votes
4answers
431 views

Obscuring stored info in a flat-text file

I have an idea for an addon for World of Warcraft which would basically be a minigame within the game itself. Eventually, I'd like to have players be able to compete against each other directly. The ...
8
votes
2answers
5k views

Lua as a stand-alone for game programming like Python?

I've used Python before with PyGame to make games, but PyGame doesn't seem to be so popular anymore, and there arent that many good resources for it. I hear lots of buzz about Lua as a fast scripting ...
11
votes
4answers
4k views

Game engine with good Lua entity creation/management [closed]

I'm looking for an engine that constructs it's entities using Lua or other scripting language. This is in order to find inspiration and do it in my own engine as well. I know that Cryengine does use ...
6
votes
1answer
1k views

Huge slowdown when running Lua as statically linked lib versus stand alone interpreter

I'm developing some algorithms in Lua which are run mostly in Lua (few calls to C++) and I'm noticing a huge slowdown when I'm running them from my app rather than the default Lua interpreter. The ...
4
votes
3answers
1k views

Protobuf vs Lua for custom file format

I'm defining a custom/simple file format for loading textures in my game. I narrowed my choice of file formats to two options: Lua protobuf I chose Lua, because my game is already using Lua, I ...
6
votes
2answers
1k views

How do I build games with scripted actors?

The idea I have an idea for a game. A few games, actually, that can built on top of the same general design. There is a game world that the player and the other actors exist in. The player can get ...
8
votes
2answers
2k views

Would using Lua scripts to define game logic for an MMO server be a lot slower than compiled in C++?

I am using an entity system for my MMO server and I was thinking about defining the behavior of "actions" using Lua scripts. The server is written in C++. I am not very familiar with the speed/memory ...
6
votes
2answers
2k views

Lightweight lua objects vs. inheritance

Although I did this a couple of times from scratch, still no solution really fits. I'm using lua for scripting in my games. Lua holds the "prototypes" of the game elements, that are copied to each ...
4
votes
1answer
1k views

Defining GUI control event responses using Lua in C++

I'm using Irrlicht(C++) for a 3D engine, and it has a built in GUI system. The GUI events are something like this: switch(eventtype) case button_pressed:     stuff case ...
4
votes
3answers
479 views

Use of classes for lua extensions

I'm asking about a very small domain. One-off extension scripts. IE, defining a new weapon for scorched earth. When providing and API for small extension I've seen two approaches. The API exposes ...
3
votes
1answer
740 views

Is it possible to develop a game with Lua/Löve and have the source code compiled?

I've been looking at Lua and Löve for developing simple 2D games. But since Lua is interpreted and I know it can be compiled to some point, but how secure is that to decompiling. Or is there a better ...
30
votes
6answers
8k views

Should I be using Lua for game logic on mobile devices?

As above really, I'm writing an android based game in my spare time (android because it's free and I've no real aspirations to do anything commercial). The game logic comes from a very typical ...
16
votes
7answers
3k views

Is there any Lua API that works with C# for PC & XBox 360 Development?

I am reading a book on Game Development in which they show you how to make scripts for your game in Lua. They program Lua and use it from C++, but I was wondering if there is a library or API to use ...