dressupgeekout / lunapurpura

Reimplementation of Purple Moon's games from the 1990s (WIP) - NOTE: ScummVM port in progress
https://dressupgeekout.github.io/lunapurpura/
BSD 2-Clause "Simplified" License
8 stars 1 forks source link

Evaluate LuaJIT's FFI facility #38

Open dressupgeekout opened 4 years ago

dressupgeekout commented 4 years ago

https://luajit.org/ext_ffi.html

Looks like LÖVE supports LuaJIT's foreign function interface feature. This (potentially) means we don't have to make separate C/Lua bindings manually, which could potentially make it way easier to write the LÖVE-based demos.

However, having a proper, old-fashioned Lua binding is nice, because it allows one to use Luna Purpura's functionality in Lua scripts that have nothing to do with LuaJIT.

So, we need to figure out whether this is a path worth going down, or not.