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

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
988 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
471 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
705 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 ...
28
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
6answers
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 ...