Search found 3073 matches
- Sun Apr 11, 2021 11:44 am
- Forum: General
- Topic: Checking if anyone has got JUMPER to work recently?
- Replies: 8
- Views: 389
Re: Checking if anyone has got JUMPER to work recently?
What you described sounds right and it was a pathway I serially considered before finding the love wiki version worked immediately for reasons I still don't understand. ... Edit: I've tested the program in README and the ones in the examples/ subdirectory. They all work for me. By contrast, the one...
- Sun Apr 11, 2021 9:40 am
- Forum: Support and Development
- Topic: If statement and Goto
- Replies: 28
- Views: 984
Re: If statement and Goto
Yeah, I probably would not use this either. This certainly works, but this example suffers from " magic values ", and it adds a level of indirection that doesn't add to readability or reliability. At the very least, if you wanted to use a system like this, you should add some constants fo...
- Fri Apr 09, 2021 6:06 pm
- Forum: Support and Development
- Topic: Multidimentional arrays/Tables
- Replies: 14
- Views: 416
Re: Multidimentional arrays/Tables
Almost.
for i=1,10 would cope with it in terms of returning nil on the item.
ipairs would stop iterating on the first gap.
you decide which is worse, having one gap, or an arbitrary part of the map missing.
(that said, due to we're using nested tables, it's of course a bit more complicated)
for i=1,10 would cope with it in terms of returning nil on the item.
ipairs would stop iterating on the first gap.
you decide which is worse, having one gap, or an arbitrary part of the map missing.

(that said, due to we're using nested tables, it's of course a bit more complicated)
- Fri Apr 09, 2021 11:23 am
- Forum: Support and Development
- Topic: Multidimentional arrays/Tables
- Replies: 14
- Views: 416
Re: Multidimentional arrays/Tables
Hypothetically, for education sake, to redraw those images in a 10x10 grid, is it safe to use integer indexes? I assume using ipairs is more robust if an index is deleted? safe how? the example already used integer indices... or do you mean just using a 1D array instead? ipairs will also be worse i...
- Fri Apr 09, 2021 7:47 am
- Forum: Support and Development
- Topic: Multidimentional arrays/Tables
- Replies: 14
- Views: 416
Re: Multidimentional arrays/Tables
I think that is a fine way of doing it, and yes, lua (the language löve gives you to use) expects you to define all inner tables you want to use, after all, you can't index nothing. You could write a small helper function to define them for you, but having images[ i ] = {} in the outer loop is not t...
- Thu Apr 08, 2021 9:58 am
- Forum: Support and Development
- Topic: File paths: I've tried everything
- Replies: 13
- Views: 333
Re: File paths: I've tried everything
Works on my pc too, with win7 so i couldn't reproduce the issue... though the exclusive fullscreen thing did scare the hell out of me.
- Thu Apr 08, 2021 6:31 am
- Forum: General
- Topic: Server move incoming, expect a little bit of downtime
- Replies: 14
- Views: 2990
Re: Server move incoming, expect a little bit of downtime
The font size on the wiki is now suddenly much bigger than it is in the forums. Please make them the same size, so that one common browser zoom factor can be used for forum and wiki. Both are served from the same domain, so you now have to switch between zoom levels every time, if you prefer a cert...
- Tue Apr 06, 2021 8:27 am
- Forum: General
- Topic: Looking for algorithm like flood fill
- Replies: 7
- Views: 568
Re: Looking for algorithm like flood fill
And how would you do the checking exactly? Floodfill kinda implies pixels, i don't think that's the way you want to handle this; since you just want to tell what room tiles are in, why not do one of two things: 1. use one (or more, potentially overlapping, if the rooms aren't rectangular) rectangles...
- Fri Apr 02, 2021 11:31 am
- Forum: Support and Development
- Topic: Multple Windows (love.window)
- Replies: 7
- Views: 753
Re: Multple Windows (love.window)
No, it's not possible with Löve (and I'm not sure but I think it's not possible on Windows for GL applications in general to open multiple windows). Some OpenGL-supporting emulators might beg to differ, but i'm not sure about the difference there, if one exists, to allow that kind of thing... To cl...
- Thu Apr 01, 2021 2:28 pm
- Forum: Support and Development
- Topic: Multple Windows (love.window)
- Replies: 7
- Views: 753
Re: Multple Windows (love.window)
While I will probably go with a GUI library I am curious about running multiple Love apps. How would I go about running another Love app from inside of a currently running Love app? Would this be a portable solution (across OS). I did do this thing on the löve discord server as a test, it only uses...