3 ms·
I thought Lua was great for games development, the author does not mention it. http://www.lua.org http://www.lua.org
by lugus35 11y ago
I thought Lua was great for games development, the author does not mention it.
http://www.lua.org http://www.lua.org
- cookiecaper 11y agoLua is widely used as a scripting layer on top of a game engine. The intense calculations needed to generate a high-fidelity simulation like graphics and physics are usually implemented in the engine in C++, and then the game logic/item behavior/etc. is defined in Lua. I haven't heard of anyone using pure Lua for a whole game, including the engine. It'd be really interesting to see what it looked like if someone did so.
- nunodonato 11y agothere are plenty of games using pure Lua. www.love2d.org :)
- lbenes 11y agoNo, Only the scripting is Lua. The engine is all in C++.[1] [1] https://bitbucket.org/rude/love/src/tip/src/ https://bitbucket.org/rude/love/src/tip/src/
- krylon 11y agoAfter all, that's kind of the point of Lua. Write all of the performance-critical / low-level stuff in C or C++, expose it to Lua, then orchestrate it from a Lua script. Lua's C API is very pleasant to use. As a standalone scripting language, I found it rather awkward to use when compared to, say, Python or Perl. It was only when using it as an embedded scripting language (not on a game, though) that I could really see it shine.
- adnzzzzZ 11y agoWhen using LÖVE you have to write a lot of stuff in pure Lua because LÖVE is a framework and not an engine. So, for instance, if you wanna do AI you have to write everything about it yourself (without calling any of LÖVE's functions because generally they won't help you with this task), and most people will do it in Lua only.
- Narishma 11y agoThose aren't the types of games he's making, though.
- AndyKelley 11y agoThe author said that garbage collection and non-static-typing were problems. Last I checked Lua has both of those.
- vardump 11y agoYet Lua has been embedded in a large number of AAA games.
- eddieroger 11y agoThere's a difference between embedding and using a Lua engine in a game and writing the main game code in Lua. The more accurate question would be, "how many games are written in pure Lua?"
- Narishma 11y agoFor the types of games he's making, it would indeed be a good fit combined with a framework like love2d.