Page 1 of 1

Requesting Documentation for Löve with Raspberry Pi

Posted: Wed Oct 02, 2019 4:55 am
by rainthstrive
Hello everyone, I'm new to the scene.

I'll be making a project with a Pi soon, and I would like to integrate a game into it that can send data to other parts of my circuit. I haven't found any information on that as of yet.

Let's say, in my game (made in Löve, of course), I get a score of 200 points. So, that number will get sent to the Pi and rotate some servos.
Is this possible at all? If not, can we make it possible?

Re: Requesting Documentation for Löve with Raspberry Pi

Posted: Wed Oct 02, 2019 11:12 am
by raidho36
You can create a .so binary library that will interface with Pi's hardware, and then hook it up via FFI. You can make this library in a Lua-specific fashion, then you can simply "require" it like Lua modules.

Re: Requesting Documentation for Löve with Raspberry Pi

Posted: Wed Oct 02, 2019 11:30 am
by pgimeno
Take a look at this email by LuaJIT creator Mike Pall:
http://lua-users.org/lists/lua-l/2012-04/msg01122.html