Search found 585 matches
- Sun Apr 07, 2013 3:51 am
- Forum: Support and Development
- Topic: How to go about searching and replacing a word in a string
- Replies: 4
- Views: 2137
Re: How to go about searching and replacing a word in a stri
I'd read over the Strings library section in PiL. Should answer all of your questions.
- Sun Apr 07, 2013 3:47 am
- Forum: Games and Creations
- Topic: 3D Picross
- Replies: 11
- Views: 4161
Re: 3D Picross
I love picross (or nonograms as they are originally called). Looks good.
- Sat Apr 06, 2013 1:34 am
- Forum: Games and Creations
- Topic: [Demo] [IndieGoGo] Netherworld – an abstract roguelike
- Replies: 10
- Views: 4330
Re: [Demo] [IndieGoGo] Netherworld – an abstract roguelike
I find it a bit funky that you're including art from games that "inspired" Netherworld in your press release. Someone who just gives a cursory glance might assume that the people behind those games have some investment in this. Do you have their permission to use the artwork in advertiseme...
Re: Why Love?
Was looking for a language to learn over winter break 2011. Found out about Lua through /r/gamedev, read a book, then wanted to make a game. Recently switched to Ubuntu, so needed something Linux-compatible. LOVE was just an apt-get away.
- Wed Apr 03, 2013 11:26 am
- Forum: Support and Development
- Topic: Sound Volume
- Replies: 4
- Views: 2180
Re: Sound Volume
Wrap it in a source.
- Tue Apr 02, 2013 8:25 pm
- Forum: Games and Creations
- Topic: Concerned Joe
- Replies: 137
- Views: 72870
Re: Concerned Joe
Great the hear about the response. Wonderful for both your game and LOVE's legitimacy as a development framework. If you ever get time out of what likely is a busy schedule, see about posting something on the LOVE blog.
- Mon Apr 01, 2013 4:50 pm
- Forum: Support and Development
- Topic: executing function from argument
- Replies: 12
- Views: 3446
Re: executing function from argument
I'm not sure why you decided to wrap the print statement inside foo in an anonymous function...get rid of that, and you get rid of the issue. Furthermore, couldn't you just pass the vararg to the anonymous function:
Code: Select all
function foo(...)
return function(...) print(...) end
end
- Mon Apr 01, 2013 6:09 am
- Forum: Support and Development
- Topic: executing function from argument
- Replies: 12
- Views: 3446
Re: executing function from argument
What if somefunc has arguments, How would i deal with that? I can't really think of any good reason why it'd need arguments, but it'd still be nice to know. Other option, use varargs: function Timer.new(time, func, ...) -- do your timing stuff if --[[ time is up ]] then func(...) end end You would ...
- Mon Apr 01, 2013 5:58 am
- Forum: Support and Development
- Topic: Table, loops and other stuff problems
- Replies: 2
- Views: 1201
Re: Table, loops and other stuff problems
What Xgoff is referring to is called shallow copy . For most situations, this is actually a good thing. As long as I do not need to alter something inside a shared table after the fact, I simply refer to the original table, rather than copy the table over and over again. Since you seem to want alpha...
- Sat Mar 30, 2013 3:03 pm
- Forum: Support and Development
- Topic: How to use distance formula ??
- Replies: 7
- Views: 3174
Re: How to use distance formula ??
You're close: distance = math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2) If you are using love.graphics.rectangle to represent your rectangles, then (x#, y#) probably represents the top-left corner of the rectangle. That's perfectly fine if you are dealing with small rectangles, but you'd probably want to ...