When I had spare time I was working on a Terraria-inspired game. Here's a sample video of how far I got: https://www.youtube.com/watch?v=clxX8QZonL4 with the code here: https://bitbucket.org/sirpengi/lua_lovestory/src/tip?at=defa...
I ended up using luajit FFI to call into C to calculate lighting. I wonder what the FFI support is on the android/ios ports.