Love2dCS

Discuss any ports of LÖVE to different platforms.
Post Reply
User avatar
endlesstravel
Prole
Posts: 8
Joined: Fri Apr 01, 2016 10:38 am

Love2dCS

Post by endlesstravel » Mon Nov 27, 2017 8:56 am

Hi everybody, Love2dCS is a C# Wrapper for LÖVE.
It means you can make your game with C# in the way you make game in LÖVE .

Check out it on Github.

I always forget what I did in lua code, so ... :?
However, truth be told, it means your lost support from so much libraries already exist in LÖVE as well.

It still in development, temporarily not support physics module.
- Is life always this hard,or is it just when you're a kid?
- Always like this.

User avatar
Sir_Silver
Party member
Posts: 249
Joined: Mon Aug 22, 2016 2:25 pm

Re: Love2dCS

Post by Sir_Silver » Mon Nov 27, 2017 4:55 pm

Seems pretty cool! Can't imagine myself wanting to program in C# over Lua when it comes to Love2D though, I think if I was going to use C# I would be using Unity! =P

User avatar
endlesstravel
Prole
Posts: 8
Joined: Fri Apr 01, 2016 10:38 am

Re: Love2dCS

Post by endlesstravel » Tue Nov 28, 2017 1:27 am

Yes, I think Unity3d is pretty choice. And, there may be a misunderstanding here, Love2dCS enable you directly call LÖVE function not through lua.
- Is life always this hard,or is it just when you're a kid?
- Always like this.

User avatar
Stifu
Prole
Posts: 23
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Love2dCS

Post by Stifu » Wed Nov 29, 2017 7:56 am

endlesstravel wrote:
Tue Nov 28, 2017 1:27 am
Love2dCS enable you directly call LÖVE function not through lua.
I think that was clear. When Sir_SIlver said "C# over Lua", he meant to favor one over the other.

Anyway, cool project. Although I'm a C# coder myself, I'm wary of such wrappers in general. They may introduce extra bugs, be incomplete, or not up to date. Not to mention they might affect performances (might be interesting to benchmark it). I don't mean to sound overly negative, though, it's still a nice project.
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com

User avatar
bartbes
Sex machine
Posts: 4869
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love2dCS

Post by bartbes » Wed Nov 29, 2017 12:28 pm

It's still a bit rough around the edges, like getting NullReferenceExceptions when calling Love.Graphics.NewImage on a file that doesn't exist, but it's cool to see love being used from another language. As I wanted to test this, I got it compiling and running on linux (with mono), so I sent you a pull request with my changes.

I kind of feel like the c library component could also be useful for bindings for other languages.

I also moved the topic to the Ports subforum. I guess it's not really a port to another device/os as such, but it seemed like a more sensible place than the Libraries and Tools subforum to me.
Cowardly acts and the eating of birds must not be the deeds of a Hero of Storms.

User avatar
endlesstravel
Prole
Posts: 8
Joined: Fri Apr 01, 2016 10:38 am

Re: Love2dCS

Post by endlesstravel » Wed Nov 29, 2017 2:49 pm

Thanks for your advice!
I have not yet try to build Love2dCS on Linux.
Agree with your point of view. And this posts indeed suitable for staying in Ports subforum.
- Is life always this hard,or is it just when you're a kid?
- Always like this.

User avatar
endlesstravel
Prole
Posts: 8
Joined: Fri Apr 01, 2016 10:38 am

Re: Love2dCS

Post by endlesstravel » Wed Nov 29, 2017 2:54 pm

Stifu wrote:
Wed Nov 29, 2017 7:56 am
endlesstravel wrote:
Tue Nov 28, 2017 1:27 am
Love2dCS enable you directly call LÖVE function not through lua.
I think that was clear. When Sir_SIlver said "C# over Lua", he meant to favor one over the other.

Anyway, cool project. Although I'm a C# coder myself, I'm wary of such wrappers in general. They may introduce extra bugs, be incomplete, or not up to date. Not to mention they might affect performances (might be interesting to benchmark it). I don't mean to sound overly negative, though, it's still a nice project.
Haha, I am not a native speaker of English. My English makes me misunderstood many sentences. This time I learned some language knowledge of prepositions. :D
- Is life always this hard,or is it just when you're a kid?
- Always like this.

User avatar
Nixola
Inner party member
Posts: 1879
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Love2dCS

Post by Nixola » Wed Nov 29, 2017 3:11 pm

To be fair, the way it's written could mean both.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

User avatar
endlesstravel
Prole
Posts: 8
Joined: Fri Apr 01, 2016 10:38 am

Re: Love2dCS

Post by endlesstravel » Wed Nov 29, 2017 3:28 pm

bartbes wrote:
Wed Nov 29, 2017 12:28 pm
It's still a bit rough around the edges, like getting NullReferenceExceptions when calling Love.Graphics.NewImage on a file that doesn't exist, but it's cool to see love being used from another language. As I wanted to test this, I got it compiling and running on linux (with mono), so I sent you a pull request with my changes.

I kind of feel like the c library component could also be useful for bindings for other languages.

I also moved the topic to the Ports subforum. I guess it's not really a port to another device/os as such, but it seemed like a more sensible place than the Libraries and Tools subforum to me.
When you calling Love.Graphics.NewImage on a file that doesn't exist it must be throw a error which is "file not exist" !
Love2dDll.CheckCAPIException will response for error check. :awesome:
- Is life always this hard,or is it just when you're a kid?
- Always like this.

Remixful
Prole
Posts: 6
Joined: Sun Jun 12, 2016 11:16 am

Re: Love2dCS

Post by Remixful » Mon Dec 11, 2017 4:21 pm

Awesome, I'm going to try it out! :awesome:
Will it possible to reference external Love2D libraries?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests