News for hackers. Stuff that matters.
Re:LÖVE: a framework to make 2D games in Lua by idonthaveanacco on Wednesday September 13, 2023 @06:52AM (#37495015)
How did you go about supporting all those platforms? How much did LÖVE help with/hinder that aspect?
Re:LÖVE: a framework to make 2D games in Lua by fileeditview on Wednesday September 13, 2023 @06:57AM (#37495060)
That's a really interesting question. I created some small games with Löve and really loved it. However I always found the whole packaging/distribution/deployment a bit of a problematic topic.

If you don't just want to distribute a .love file (e.g. you do not want your user to get the Löve runtime themselves) this was basically unsupported and you had to come up with your own solutions..

I still think if the Löve community could improve this part it would help the most.

Re:LÖVE: a framework to make 2D games in Lua by dxuh on Wednesday September 13, 2023 @07:20AM (#37495232)
There are some packaging tools that help with distribution (like https://github.com/pfirsich/makelove/ - I made this). What would you like improved?
Re:LÖVE: a framework to make 2D games in Lua by fileeditview on Wednesday September 13, 2023 @07:28AM (#37495296)
That looks very interesting. Thanks for creating and sharing. This wasn't available back when I used Löve. Maybe I should give it another shot. I will certainly try your tool!
Re:LÖVE: a framework to make 2D games in Lua by keyle on Wednesday September 13, 2023 @07:26AM (#37495286)
Nice work. How did you go about app signing on macOS? It's a big issue making something that doesn't launch like the antichrist built it.

If it's supported, or not, documentation is king!

Re:LÖVE: a framework to make 2D games in Lua by dxuh on Wednesday September 13, 2023 @08:57AM (#37496139)
There is nothing built-in for it per se. I think you just have to sign the application from a postbuild hook, I think. I remember discussing this with the person that contributed the Mac build, but I don't remember the result of the discussion exactly. I think that was it though.
Re:LÖVE: a framework to make 2D games in Lua by Takennickname on Wednesday September 13, 2023 @07:04AM (#37495116)
Someone should solve this with a Javascript app in an electron wrapper
Re:LÖVE: a framework to make 2D games in Lua by nunodonato on Wednesday September 13, 2023 @07:45AM (#37495437)
oh god, no. Please stop trying to push javascript (and your damned node packages) into everything. There are community tools to package LÖVE games for win/mac/linux.
Re:LÖVE: a framework to make 2D games in Lua by trey-jones on Wednesday September 13, 2023 @08:36AM (#37495916)
It's possible I'm taking it the wrong way, but I think their comment was meant facetiously.
Re:LÖVE: a framework to make 2D games in Lua by otikik on Wednesday September 13, 2023 @01:59PM (#37499590)
(grabs holy water, garlic, and a crucifix)
Re:LÖVE: a framework to make 2D games in Lua by exikyut on Thursday September 14, 2023 @03:19AM (#37505953)
(The JS runtime doesn't make it past the salt line while the WASM modules do, causing the the app runtime to fail to find critical exports and go into an infinite loop which persists after Chrome is closed because boot was managed by a service worker)
Re:LÖVE: a framework to make 2D games in Lua by Boxxed on Wednesday September 13, 2023 @08:19AM (#37495734)
Why don't you want to distribute the love runtime + .love file to your users?
Re:LÖVE: a framework to make 2D games in Lua by seanw444 on Wednesday September 13, 2023 @09:37AM (#37496570)
Less polished, and more steps. People want to download a game. Not a patchwork of files and runtimes. It doesn't feel "productioney".
Re:LÖVE: a framework to make 2D games in Lua by Boxxed on Wednesday September 13, 2023 @10:06AM (#37496954)
But you can distribute e.g. a zip file with both the run time and data in it, can't you? How is that any different from how any other game is distributed?
Re:LÖVE: a framework to make 2D games in Lua by ido on Wednesday September 13, 2023 @10:31AM (#37497262)
Do people even have to know? I’d anyway these days distribute via itch or steam
Re:LÖVE: a framework to make 2D games in Lua by maccard on Wednesday September 13, 2023 @11:09AM (#37497800)
You can use steam to install runtimes with install scripts [0]

[0] https://partner.steamgames.com/doc/sdk/installscripts

Re:LÖVE: a framework to make 2D games in Lua by seanw444 on Wednesday September 13, 2023 @10:24AM (#37497166)
Fair point.
Re:LÖVE: a framework to make 2D games in Lua by synergy20 on Wednesday September 13, 2023 @11:39AM (#37498213)
How to do that exactly to make the user click and run the application without a second thought?
Re:LÖVE: a framework to make 2D games in Lua by rollcat on Wednesday September 13, 2023 @08:59AM (#37496168)
I'll throw in my 3c, it was 2016 and I've been trying to create a fully static x86-64 Linux binary, to hopefully avoid all the problems with DLL hell (as Löve links to an awful lot of stuff, and judging by the .so numbers it was unlikely to work in a year or two). TL;DR I've spent more time fighting the linker than writing the actual games ;)

I didn't want to rely on whatever-version-of-löve-this-distro-has-packaged because Löve at the time would break API compat quite frivolously. You can probably use an AppImage these days but I think this goes against the intent and spirit of Löve. It should be trivial to build entirely self-contained binaries; and in case of Windows/Mac, it was indeed the case (modulo code signing).