Search found 6 matches

by ferdielance
Mon May 13, 2013 9:27 pm
Forum: Support and Development
Topic: A loop in a loop, breaking both loops
Replies: 6
Views: 3687

Re: A loop in a loop, breaking both loops

Depending on your needs, the following may work more simply, or may not be practical at all. * A: Put the whole double loop structure inside a function, and use return to get out when the time comes. (Not good in situations where having a function call every time you do the double loop is too costly...
by ferdielance
Fri May 10, 2013 8:33 am
Forum: Support and Development
Topic: [SOLVED]Require all files in a folder
Replies: 15
Views: 19961

Re: Require all files in a folder

That's an elegant addition. I assume other code projects can use it with credit?
by ferdielance
Fri May 10, 2013 8:26 am
Forum: Support and Development
Topic: Can anybody explain why shortcuts doesn't work?
Replies: 3
Views: 1626

Re: Can anybody explain why shortcuts doesn't work?

That function doesn't return anything. So if you say: myQuad = quad(etc etc etc) ...after defining that function, it evaluates quad to nil. Fortunately, .lua lets us treat functions like any other kind of data, so you don't need to go through so many hoops to make a convenient alias! Try this: quad ...
by ferdielance
Fri May 10, 2013 4:13 am
Forum: Support and Development
Topic: [SOLVED]Require all files in a folder
Replies: 15
Views: 19961

Re: Require all files in a folder

You could use love.filesystem.enumerate to get the names of all files in the folder as strings, then use a for loop to iterate over the keys and values in the list that returns (see the example in the docs), and then use each string as an argument to require each file, I think.
by ferdielance
Thu May 09, 2013 6:37 am
Forum: General
Topic: Meetup in SF Bay Area: East Bay (Oakland)
Replies: 3
Views: 2446

Re: Meetup in SF Bay Area: East Bay (Oakland)

I'm pretty new, but I'd consider it. I'm working on a visual novel/adventure-y thing, and I'd love to meet people.

That said, it would be nice if it were near public transit, as I'd have to come from SF.
by ferdielance
Tue May 07, 2013 2:32 pm
Forum: Support and Development
Topic: A function/tables question(I think?)
Replies: 7
Views: 7603

Re: A function/tables question(I think?)

I'm also learning metatables, so let me try to work you through as straightforward an explanation as I can manage, building a jury-rigged class-ish thing one step at a time. Maybe explaining to you will improve my own understanding. Please follow along as I go; you're more likely to feel it really c...