Page 1 of 1

Can we use Love2D directly within a C++ program ?

Posted: Wed Jul 06, 2016 10:20 am
by Linkpy
Hello !

This post should be in the Support section, but it's a question about Love it-self and its architecture, not a problem or a support question.

So, is Löve can be used directly with C++ ? For example, can we make a game with Love, but in C++ not in Lua ?
Thanks !

Re: Can we use Love2D directly within a C++ program ?

Posted: Wed Jul 06, 2016 3:14 pm
by louie999
Why'd you wanna use it with C++? To extend its functions?

Re: Can we use Love2D directly within a C++ program ?

Posted: Wed Jul 06, 2016 3:21 pm
by Linkpy
No, just use it like SFML or SDL, as a 2D framework.

Re: Can we use Love2D directly within a C++ program ?

Posted: Wed Jul 06, 2016 5:35 pm
by zorg
Löve can be used as a library, but it's probably not exactly easy to get working, and there are probably many limitations and such; sadly i can't say more since i never tried it that way myself.

Re: Can we use Love2D directly within a C++ program ?

Posted: Thu Jul 07, 2016 7:07 am
by Trebgarta
Try löve's sorce, it is cpp, but it is not designed to be used in cpp. I'd say extend in cpp and use custom binaries to work in lua, or use SFML because Löve in cpp wouldnt be a fun experience.

Re: Can we use Love2D directly within a C++ program ?

Posted: Thu Jul 07, 2016 7:39 am
by zorg

Re: Can we use Love2D directly within a C++ program ?

Posted: Thu Jul 07, 2016 10:08 am
by Linkpy
Ok, thanks !

But, it may be cool to modify Love2D to have a cool C++ framework. But I'm on Windows, and I hate C++ build system in Windows :crazy: (Linux FTW)