Search found 3549 matches
- Sun Mar 17, 2024 1:16 pm
- Forum: General
- Topic: sh + love bundled in one file - is this intended behaviour?
- Replies: 19
- Views: 2489
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)...
- Fri Mar 15, 2024 2:52 pm
- Forum: General
- Topic: Code Doodles!
- Replies: 196
- Views: 264096
Re: Code Doodles!
That's mesmerizing! Very nice.
- Thu Mar 14, 2024 10:48 pm
- Forum: General
- Topic: sh + love bundled in one file - is this intended behaviour?
- Replies: 19
- Views: 2489
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...
- Tue Mar 12, 2024 2:03 pm
- Forum: General
- Topic: Gradients (gradient as fill)
- Replies: 10
- Views: 1976
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,...
- 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: 975
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...
- Thu Feb 29, 2024 11:15 am
- Forum: Libraries and Tools
- Topic: Native open/save dialogs for Windows
- Replies: 2
- Views: 1525
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...
- Mon Feb 19, 2024 7:13 pm
- Forum: General
- Topic: I can't get rid of the blurred text
- Replies: 9
- Views: 1380
Re: I can't get rid of the blurred text
Looks sharp to me as well, though a bit small. I used this font: https://github.com/rsms/inter/releases/download/v4.0/Inter-4.0.zip (after unzipping, it's the one in extras/ttf/Inter-Regular.ttf) Are you sure that's all the code? Aren't you using love.graphics.scale or anything? I used this (copied ...
- Wed Feb 14, 2024 4:58 pm
- Forum: Support and Development
- Topic: Http requests
- Replies: 7
- Views: 977
Re: Http requests
It sounds like a wrong DLL. Either wrong bits (32 vs 64) or this ssl.dll is not the one expected by LuaSec.
- Tue Feb 13, 2024 3:31 pm
- Forum: Libraries and Tools
- Topic: Maze Thread
- Replies: 50
- Views: 39754
Re: Maze Thread
I recently implemented Kruskal's algorhtm. Conceptually It's one of the simplest I found; however, the mazes it generates have many short blind alleys, as it happens with any other algorithm which generates a uniformly distributed spanning tree (such as Aldous-Broder or Wilson's algorithms). This ti...
- Tue Feb 13, 2024 2:42 pm
- Forum: General
- Topic: Code Doodles!
- Replies: 196
- Views: 264096
Re: Code Doodles!
I was toying around with mazes the other day and found the recursive backtracker to be pretty easy to implement and generally nice to look at. It guarantees a maze where every spot is filled in and all spots are on a single network. There's a thread expressly dedicated to mazes: https://love2d.org/...