Search found 2947 matches

by slime
Fri Nov 25, 2022 4:30 pm
Forum: General
Topic: Why did love2d update its logo to the oversimplified one
Replies: 10
Views: 285

Re: Why did love2d update its logo to the oversimplified one

Old: viewtopic.php?p=195040#p195040

New: viewtopic.php?p=195011#p195011

The fake lighting effects on the old windows icon have definitely gone out of style these days.
by slime
Fri Nov 25, 2022 4:08 pm
Forum: General
Topic: Why did love2d update its logo to the oversimplified one
Replies: 10
Views: 285

Re: Why did love2d update its logo to the oversimplified one

GVovkiv wrote: Fri Nov 25, 2022 3:27 pm why exactly this colors?
They represent the gender spectrum. :nyu:

(I don't think that was rude's intent, but I like that they're similar to the design of a certain flag.)
by slime
Wed Nov 16, 2022 2:00 pm
Forum: Support and Development
Topic: [SOLVED] How not to get additive alpha
Replies: 6
Views: 205

Re: How not to get additive alpha

It should work to use the 'lighten' blend mode while drawing the shapes to a canvas, and then use (premultiplied) alpha blending when drawing/compositing the canvas to the screen. The lighten blend mode doesn't support non premultiplied alpha, so you might have to multiply rgb with alpha in a shader...
by slime
Tue Nov 08, 2022 11:52 pm
Forum: Support and Development
Topic: Dimentions of text rendered with Printf
Replies: 3
Views: 728

Re: Dimentions of text rendered with Printf

You can use Font:getWrap to get the width and number of lines, and then multiply the number of lines with Font:getHeight to get the total height.
by slime
Sat Oct 29, 2022 12:43 am
Forum: Support and Development
Topic: Help us add SSL to Love2D
Replies: 9
Views: 2020

Re: Help us add SSL to Love2D

If you want to load a Lua C module outside love's filesystem environment, you'll probably want to put it near the executable and explicitly set package.cpath so it searches in the folder that the module library file is in. If you don't set package.cpath (or use package.loadlib with an absolute path)...
by slime
Fri Oct 28, 2022 4:46 pm
Forum: Support and Development
Topic: Help us add SSL to Love2D
Replies: 9
Views: 2020

Re: Help us add SSL to Love2D

The love-bundled https library doesn't need to be moved anywhere. But it's not bundled with love until love 12. The library also separately works as a standalone Lua C module, which is how it's able to be used with love 11. In that situation it works just like any other standalone Lua C module, incl...
by slime
Fri Oct 28, 2022 1:04 pm
Forum: Support and Development
Topic: Help us add SSL to Love2D
Replies: 9
Views: 2020

Re: Help us add SSL to Love2D

In general I would not recommend putting binaries inside the game folder - the point of the .love file is to keep it cross platform. The point of a .love file is to have a single and consistent archive for all your game's contents. The https library is small enough that it should be no problem to h...
by slime
Fri Oct 28, 2022 12:18 pm
Forum: Support and Development
Topic: Help us add SSL to Love2D
Replies: 9
Views: 2020

Re: Help us add SSL to Love2D

Yes, that's just some example/test code for a standalone Lua interpreter. When using love you can ship the .so/.dll inside the .love file, and copy it to the save directory. require should work without modifying any cpaths or relying on any specific current working directory, if you do that. (Or you...
by slime
Fri Oct 28, 2022 11:24 am
Forum: Support and Development
Topic: Help us add SSL to Love2D
Replies: 9
Views: 2020

Re: Help us add SSL/LuaSec to Love2D

love 12 has its own Lua platform-native HTTPS library already (which can be run as a standalone dynamic library for use with love 11). It'll probably be easier to use that. LuaSec has some pretty hefty dependencies compared to it, which (among other reasons) didn't make LuaSec a very compelling choi...
by slime
Wed Oct 19, 2022 6:41 pm
Forum: Support and Development
Topic: sort order with shader
Replies: 10
Views: 1539

Re: sort order with shader

Every game that uses alpha blending with semitransparency (regardless of what engine is being used) needs to sort objects back-to-front to make sure they're blended correctly.