stevedekorte / lua_ios

LuaJIT + OpenGLES + OpenAL + luasocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua_ios

lua_ios is a lightweight lua game engine alternative to frameworks like Corona or Moai. It includes LuaJIT and bindings for:

OpenGLES
luasocket
OpenAL

USAGE

To use, just include the lua_ios folder in your Xcode project, add your own main.lua resource file and call the following in your GLESView:

lua_State luaState = lua_open();
luaopen_lua_ios(luaState);

NSString *filePath = [[NSBundle mainBundle] 
	pathForResource:@"main" ofType:@"lua"];

luaL_loadfile(luaState, [filePath UTF8String]);

You will also need to link the following frameworks into your project:

GLKit.framework
OpenGLES.framework
OpenAL.framework
QuartzCore.framework
CoreGraphics.framework
Foundation.framework	

LICENSE

MIT licensed Copyright Steve Dekorte and Rich Collins

About

LuaJIT + OpenGLES + OpenAL + luasocket

License:MIT License


Languages

Language:C 63.7%Language:Lua 32.8%Language:Objective-C 3.4%Language:C++ 0.1%