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