Search found 98 matches

by Mud
Sun Nov 07, 2010 10:56 am
Forum: General
Topic: How do you use threads?
Replies: 20
Views: 5268

Re: How do you use threads?

I wonder how you guys fail to see [..] .thread.newThread("input", "input.lua") I had no idea that existed. It's not in 0.6.2 and not included in the love module's index on the Wiki. Are you guys all using 0.7? I have no idea why you would want to do this. A simply console interf...
by Mud
Sun Nov 07, 2010 9:39 am
Forum: Support and Development
Topic: Camera Shake? / Collisions / Enemies...
Replies: 57
Views: 19884

Re: Camera Shake?

Can has video? Here you go (excuse the terrible 'game'). Code's something like this (I set shaketimer to 1 second, so the max shake amount is 10 pixels, then it settles down): function love.update(dt) shaketimer = shaketimer - dt ... function love.draw() if shaketimer >= 0 then local shake = 10 * s...
by Mud
Sun Nov 07, 2010 7:55 am
Forum: General
Topic: How do you use threads?
Replies: 20
Views: 5268

Re: How do you use threads?

I just spent the last 1/2 hour googling a way to use io.stdin:read() without completely pausing your program. Hmm... I was gonna say that this would be trivial to add via Lua's module system (literally 5 or 6 lines of C code), but Love appears to be statically linked to Lua and the API functions ar...
by Mud
Sat Nov 06, 2010 1:53 am
Forum: Support and Development
Topic: Newbie questions (re: particles, physics, audio)
Replies: 12
Views: 2824

Re: Newbie questions (re: particles, physics, audio)

try function sound_play(name) sources[#sources + 1] = love.audio.newSource(rawdata[name], 'static') love.audio.play(sources[#sources]) end Thanks for the tip, but I tend to prefer simpler lines over fewer lines. In this case, the extra line eliminates a redundant table lookup and call to the length...
by Mud
Sat Nov 06, 2010 12:48 am
Forum: Support and Development
Topic: Newbie questions (re: particles, physics, audio)
Replies: 12
Views: 2824

Re: Newbie questions (re: particles, physics, audio)

If you supplied the .love in which it goes wrong, we might be able to help you further. OK, I'll try to strip it down to the small code that reproduces the problem. Everything is, bodies and shapes as well Cool. So I just need to keep a reference around, to prevent something from being collected wh...
by Mud
Fri Nov 05, 2010 8:59 pm
Forum: Support and Development
Topic: Newbie questions (re: particles, physics, audio)
Replies: 12
Views: 2824

Re: Newbie questions (re: particles, physics, audio)

zac352 wrote:Wow.. I've actually never used any of those libraries thus far.
That's kinda funny. I was drawn to the things that would look the coolest with the least effort from me. :)
by Mud
Fri Nov 05, 2010 8:49 pm
Forum: Support and Development
Topic: Newbie questions (re: particles, physics, audio)
Replies: 12
Views: 2824

Newbie questions (re: particles, physics, audio)

Hey guys. I discovered Löve last night and started making my first ever videogame, with my 10 year old as designer ( that's him shooting lasers from his eyes ). I'm sure I'll have a lot of questions in the days to come. Thanks in advance, and thanks for making Love. :ehem: RE: Particle System I love...
by Mud
Fri Nov 05, 2010 8:17 pm
Forum: Support and Development
Topic: MiddleClass Equivalence
Replies: 9
Views: 4014

Re: MiddleClass Equivalence

kikito wrote:Indeed. I meant "reference comparison" not "pointer comparison". Wrote in a rush.
Well, the former is implemented in terms of the latter, so you weren't technical wrong. :)