Search found 3476 matches

by zorg
Sat Mar 08, 2025 7:18 am
Forum: Support and Development
Topic: How to determine if a value is a LÖVE object?
Replies: 5
Views: 757

Re: How to determine if a value is a LÖVE object?

I am creating an API with editable properties and would like to have basic type checking in it. For regular Lua values this is simple enough but I can't find a way to check if a value is a LÖVE object. I thought to extract Object:typeOf for this but calling it with non LÖVE objects actually causes ...
by zorg
Mon Mar 03, 2025 2:16 pm
Forum: General
Topic: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.
Replies: 5
Views: 1230

Re: I’m very excited to install love for the first time, but I can’t enter the program. Please give me some guidance.

How are you trying to run your code? I'm assuming you gave löve a path, and you included main.lua, which you shouldn't; path ends at the containing folder, so remove main.lua and it should run.
by zorg
Thu Feb 27, 2025 10:08 am
Forum: Support and Development
Topic: How to unmount the default source directory or .love file
Replies: 2
Views: 744

Re: How to unmount the default source directory or .love file

What mountpoint did you mount the newly mounted archive into? If you didn't supply one, it put the files into the root of the virtual file system, which is probably not the best of ideas. Give the method a second parameter e.g. "mounts/"..tostring(id)" or whatever, and then you can fr...
by zorg
Mon Feb 17, 2025 6:48 am
Forum: Support and Development
Topic: love.graphics.print makes pixelated text blurry.
Replies: 5
Views: 2353

Re: love.graphics.print makes pixelated text blurry.

A bit more explanation, setDefaultFilter should have been called *before* you create a font, and it would have worked as well... if that was the only issue.
by zorg
Mon Feb 17, 2025 6:46 am
Forum: General
Topic: Why is my screen center this
Replies: 3
Views: 2612

Re: Why is my screen center this

You could also use the following function to make the center point (0,0) on the coordinate system you use: love.graphics.translate(-love.graphics.getWidth()/2, -love.graphics.getHeight()/2) Now, "normally", the above should account for DPI scaling (the functions that don't are getPixelWidt...
by zorg
Mon Feb 10, 2025 8:31 am
Forum: Support and Development
Topic: Dual screen
Replies: 2
Views: 2085

Re: Dual screen

Instead of the file ping-pong thing, you could probably also use local networking to send and receive data between the two instances. Or, you know, just split your one window into two, and render the two screens next to each other however you'd like... That said, if you are talking about an actual 3...
by zorg
Tue Jan 07, 2025 7:00 am
Forum: General
Topic: How to store/process metadata corresponding to a sprite
Replies: 6
Views: 3145

Re: How to store/process metadata corresponding to a sprite

3) Put that data directly into PNG. I haven't investigated this deeply but seems that I can put user defined data into the image. Don't like this because it involves a separate tool (If I understand correctly Aseprite doesn't allow this). And moreover, it complicates the development. You are referr...
by zorg
Mon Dec 30, 2024 7:47 am
Forum: Support and Development
Topic: Source:tell on queueable sources
Replies: 3
Views: 902

Re: Source:tell on queueable sources

With queueable sources, Source:tell might be returning 0 due to how short your buffers are; By the time it queries the data, the frame got queued and played completely, and so it returns zero since the playback stopped due to the source running out of unplayed samples or unplayed buffers as well). S...
by zorg
Wed Dec 18, 2024 6:44 am
Forum: General
Topic: How to use gRPC in LOVE?
Replies: 5
Views: 2496

Re: How to use gRPC in LOVE?

Also, you mentioned lua54.dll which sounds out of place, considering löve uses luaJIT by default, which iirc has a different name for its library file.
by zorg
Tue Dec 10, 2024 6:44 am
Forum: General
Topic: BUG [SOLVED]
Replies: 1
Views: 1190

Re: BUG

Hi and welcome to the forums. pairs is not ordered, meaning it will iterate over the tile.inputs table in whatever order it pleases; depending on what disconnectWire does, it might mess with iteration. either try using ipairs, or if that doesn't work either (probably due to you deleting entries in t...