Page 1 of 1

Runing love2d inside python

Posted: Fri Aug 03, 2018 3:30 pm
by Malmik
Hi, I am planning to make a game with friend that is good in python 2. I decided to either learn python or write my part of code in lua, but i don't want to learn python 2 but 3, so second option is better in my opinion, and so - I need your help:

I am not good programmer, I have only written one simple game in lua, and this is only language that i can programm with at the moment (but I have quite big linux knowledge if it counts). Is there any way to run love2d inside python? I think that this can run lua in python:
https://pypi.org/project/lupa/
https://github.com/scoder/lupa

Thanks in advance, and hope for your help ;)

Re: Runing love2d inside python

Posted: Fri Aug 03, 2018 9:35 pm
by zorg
Hi and welcome to the forums!

"pure" lua code maybe, löve specific code no, since löve is actually a C++ framework using the luaJIT compiler that allows you to code software in (mostly) lua. you'd lack most things löve already comes with.

Re: Runing love2d inside python

Posted: Sat Aug 04, 2018 8:22 am
by bartbes
It looks like lupa explicitly supports loading lua binary modules. So if you compile (lib)love against lupo it might work.