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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Linkpy
Party member
Posts: 102
Joined: Fri Aug 29, 2014 6:05 pm
Location: France
Contact:

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

Post 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 !
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
louie999
Prole
Posts: 46
Joined: Fri Mar 06, 2015 9:01 am

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

Post by louie999 »

Why'd you wanna use it with C++? To extend its functions?

Code: Select all

fun = true
school = true

function isItFun()
    if school then
       fun = false
    end
    if not fun then 
       me:explode()
    end
end
User avatar
Linkpy
Party member
Posts: 102
Joined: Fri Aug 29, 2014 6:05 pm
Location: France
Contact:

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

Post by Linkpy »

No, just use it like SFML or SDL, as a 2D framework.
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
User avatar
zorg
Party member
Posts: 3441
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post 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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Trebgarta
Prole
Posts: 33
Joined: Mon May 23, 2016 5:21 pm

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

Post 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.
User avatar
zorg
Party member
Posts: 3441
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post by zorg »

Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Linkpy
Party member
Posts: 102
Joined: Fri Aug 29, 2014 6:05 pm
Location: France
Contact:

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

Post 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)
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 60 guests