Search found 3593 matches

by pgimeno
Sun Mar 24, 2024 2:20 pm
Forum: Libraries and Tools
Topic: Fast 2D point-in-polygon test
Replies: 13
Views: 17734

Re: Fast 2D point-in-polygon test

Ehhh, here's something weird. From my tests, that Lua-based method in the OP is slightly faster than the Box2D one. Point for LuaJIT I guess, it's probably optimizing that function amazingly. I honestly thought the C++ one would be faster. I'm not too surprised. In LuaJIT, external function calls v...
by pgimeno
Wed Mar 20, 2024 10:51 pm
Forum: Support and Development
Topic: Why fonts look different on LOVE than on web browser?
Replies: 12
Views: 3978

Re: Why fonts look different on LOVE than on web browser?

This looks like if anything, it should be reported to FreeType.
by pgimeno
Sun Mar 17, 2024 9:54 pm
Forum: General
Topic: sh + love bundled in one file - is this intended behaviour?
Replies: 19
Views: 5257

Re: sh + love bundled in one file - is this intended behaviour?

It'd need to provide the exact same thing as a (perhaps unpacked) appimage of love at that point, right? Since you'd also want all of love's dependencies to be the version you made your game for as well otherwise you'll run into similar problems. <snip> I'm not sure how any of that is relevant when...
by pgimeno
Sun Mar 17, 2024 1:22 pm
Forum: Games and Creations
Topic: 3D Physics Engine
Replies: 11
Views: 6118

Re: 3D Physics Engine

That's pretty impressive!
by pgimeno
Sun Mar 17, 2024 1:16 pm
Forum: General
Topic: sh + love bundled in one file - is this intended behaviour?
Replies: 19
Views: 5257

Re: sh + love bundled in one file - is this intended behaviour?

I don't think this is usually true. As a game developer you wouldn't want to rely on a global install of love on someone else's system having a version that's coincidentally compatible with your code. And if you use something like Unity instead of love and it somehow allowed that (which it doesn't)...
by pgimeno
Fri Mar 15, 2024 2:52 pm
Forum: General
Topic: Code Doodles!
Replies: 197
Views: 312244

Re: Code Doodles!

That's mesmerizing! Very nice.
by pgimeno
Thu Mar 14, 2024 10:48 pm
Forum: General
Topic: sh + love bundled in one file - is this intended behaviour?
Replies: 19
Views: 5257

Re: sh + love bundled in one file - is this intended behaviour?

At the end of the file, zip files always have a directory followed by a footer. The footer indicates where to find the directory, relative to the end of the file, and the directory can also find the actual compressed files in the same way. So, you can append a zip file to any file, and the result wi...
by pgimeno
Tue Mar 12, 2024 2:03 pm
Forum: General
Topic: Gradients (gradient as fill)
Replies: 10
Views: 4267

Re: Gradients (gradient as fill)

I make gradients with a 2x1 image and a quad. local gradientData = love.image.newImageData(2, 1, 'rgba8', '\255\000\000' .. '\255' .. '\000\255\000' .. '\255') local gradient = love.graphics.newImage(gradientData) gradient:setFilter('linear', 'linear') local gradientQuad = love.graphics.newQuad(0.5,...
by pgimeno
Sat Mar 09, 2024 11:46 pm
Forum: Support and Development
Topic: Method doesn't see self variable when called by other method (hump.class)
Replies: 8
Views: 2168

Re: Method doesn't see self variable when called by other method (hump.class)

This should be slightly faster than using that metatable mechanism, since it doesn't need the double-lookup (looking up the key on the "instance" table, not finding it, then looking it up on the __index table). In fact I'm thinking of going with this on some speed-critical code. Apparentl...
by pgimeno
Thu Feb 29, 2024 11:15 am
Forum: Libraries and Tools
Topic: Native open/save dialogs for Windows
Replies: 2
Views: 3260

Re: Native open/save dialogs for Windows

Note that Lua's strings are always in bytes, so if you try to print() something to the console and that something has UTF-8 encoding, it will look strange, but that's just the console interpreting it as ASCII: preview02.png I believe you can fix that with 'chcp 65001'. Note also that you need to se...