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 » Wed Jul 06, 2016 10:20 am

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 » Wed Jul 06, 2016 3:14 pm

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 » Wed Jul 06, 2016 3:21 pm

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: 2983
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 » Wed Jul 06, 2016 5:35 pm

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 » Thu Jul 07, 2016 7:07 am

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: 2983
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 » Thu Jul 07, 2016 7:39 am

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 » Thu Jul 07, 2016 10:08 am

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: IMP1 and 20 guests