Requesting Documentation for Löve with Raspberry Pi

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
rainthstrive
Prole
Posts: 1
Joined: Wed Oct 02, 2019 4:49 am

Requesting Documentation for Löve with Raspberry Pi

Post 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?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Requesting Documentation for Löve with Raspberry Pi

Post 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.
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Requesting Documentation for Löve with Raspberry Pi

Post by pgimeno »

Take a look at this email by LuaJIT creator Mike Pall:
http://lua-users.org/lists/lua-l/2012-04/msg01122.html
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests