Other Game Engines
Free engine (by King, now a foundation); Lua scripts with message passing, hot reload, small builds for mobile/web/console Solar2D (formerly Corona SDK) 2D mobile game framework, Lua API PICO-8 / TIC-80
Fantasy consoles using a Lua subset (TIC-80 also supports Fennel, MoonScript, and more) Garry's Mod (GLua)
Lua 5.1 + extensions for addons and gamemodes World of Warcraft
UI addons in Lua 5.1 (with a restricted API) Factorio, Don't Starve, Tabletop Simulator, Payday 2 Modding APIs in Lua Core, Playdate SDK (Panic)
CryEngine, Gideros, Cocos2d-x (Lua binding), Godot (via godot-lua extensions)
-- Defold script example (player.script)
function init(self)
msg.post(".", "acquire_input_focus")
self.velocity = vmath.vector3()
end
function on_input(self, action_id, action)
if action_id == hash("left") then self.velocity.x = -200
elseif action_id == hash("right") then self.velocity.x = 200 end
end
function update(self, dt)
local pos = go.get_position()
go.set_position(pos + self.velocity * dt)
self.velocity = vmath.vector3()
end