Bithack / principia

Open source physics-based sandbox game.
https://principia-web.se
Other
258 stars 25 forks source link

Use system box2d and lua #96

Closed fgaz closed 1 year ago

fgaz commented 1 year ago

I'm packaging principia for NixOS, and I noticed that box2d and lua are bundled. We have those in our repository, so it'd be nice to be able to link to those instead

rollerozxa commented 1 year ago

Box2D is customised, so that's not a good idea. Devendoring Lua would be fine as long as you link against Lua 5.2 in particular for level compatibility.

fgaz commented 1 year ago

Box2D is customised, so that's not a good idea

:+1:

Devendoring Lua would be fine as long as you link against Lua 5.2 in particular for level compatibility.

That would be fine, we have multiple versions in the repo. I think pkg-config can enforce version 5.2.* with an expression like 'lua >= 5.2, lua < 5.3'

griffi-gh commented 1 year ago

1) principia uses a custom, multithreaded Principia-specific box2d version based on Google's liquidfun
2) we use Eris (yep, the same eris that's used in opencomputers) instead of regular lua5.2 for persistence, and we can't just replace it with vanilla lua/jit.