|
Project Information
Members
Featured
Downloads
Links
|
Game Maker's language doesn't have features that let you use scripting languages, gmLua allows to use Lua scripts in your GM game. Features:
DownloadHow to compileYou can compile gmLua yourself. It depends on two libraries: GMAPI and Lua5. GMAPI is written by a Polish programmer, Snake, you can download it here. It allows you to interact with GM from C++. You can download the Lua binaries here. gmLua is developed and compiled with Microsoft Visual C++ 2008, the source includes a project file. Example UsageIn GML:luaStart();
lua = luaNew();
if(!lua)
{
show_error("Failed to create Lua state.", true);
}
luaRegister(lua, "showMessage", showMessage);
luaLoadFile(lua, get_string("Type your Lua script path (default: game.lua)", "game.lua"));
luaEvent(lua, "onCreate", 1, id);In Lua:function onCreate(id) -- onCreate, called from GML.
showMessage("ID: " .. tostring(id))
endTodo
Changelogv0.4
v0.3
v0.2
|