Search found 6 matches

by i_love2d_you
Sat Oct 25, 2014 9:34 pm
Forum: Support and Development
Topic: How do you handle input?
Replies: 3
Views: 3882

How do you handle input?

Just wondering how other people set up the input handling for their game. I've run into an interesting situation while trying to implement UI buttons with certain requirements: 1) Buttons are highlighted when moused-over. 2) Clicking a button depresses it, but does not trigger an on_click() event to...
by i_love2d_you
Fri Oct 17, 2014 9:20 pm
Forum: Support and Development
Topic: Trying to write a lua server...
Replies: 4
Views: 3279

Re: Trying to write a lua server...

Thanks for the reply, but I'm not sure I follow. When I call this line: local line, err = self.client:receive() I expect it to wait 10 seconds before it times out. But it doesn't. It doesn't wait any time at all. The guide on their site says to use client:settimeout(). Setting server:settimeout() di...
by i_love2d_you
Fri Oct 17, 2014 5:41 pm
Forum: Support and Development
Topic: Trying to write a lua server...
Replies: 4
Views: 3279

Trying to write a lua server...

Hi! This question isn't specific to LOVE, but I'm not sure where else to look. I've been trying to do some basic networking in lua with luasocket. I have a basic server set up, but I can't figure out how settimeout() works. function Server:run() print("Running.") self.running = true while ...
by i_love2d_you
Wed Jul 30, 2014 11:11 am
Forum: Libraries and Tools
Topic: QuadTree Collision
Replies: 6
Views: 6409

Re: QuadTree Collision

gestaltist wrote:Would you mind sharing a love file? I would love to see your implementation.
Hey, Gestaltist.

I'll have a love file to share in a day or two. I just want some time to clean up the code a bit, make sure it's properly commented, et cetera.
by i_love2d_you
Tue Jul 29, 2014 10:57 pm
Forum: Libraries and Tools
Topic: QuadTree Collision
Replies: 6
Views: 6409

Re: QuadTree Collision

Thanks!
by i_love2d_you
Tue Jul 29, 2014 10:17 pm
Forum: Libraries and Tools
Topic: QuadTree Collision
Replies: 6
Views: 6409

QuadTree Collision

This was a rather successful end to my first attempt at using a quadtree to increase the performance of my collision detection. I'll certainly be using this technique in the future. There are probably some optimizations that can be made, but it was a good exercise in data structures and I used this ...