Search found 7 matches

by Brons
Mon Jan 30, 2012 3:31 pm
Forum: Support and Development
Topic: remove a specific item from a table
Replies: 8
Views: 3480

Re: remove a specific item from a table

I meant something like this: function addblock(x, y, t) blockremoved = 0 for i = 1, #blocks do xmouselocation = math.floor(x / size) ymouselocation = math.floor(y / size) if blocks[i] then if blocks[i].x == xmouselocation and blocks[i].y == ymouselocation then table.remove (blocks, i) blockremoved =...
by Brons
Mon Jan 30, 2012 2:50 pm
Forum: Support and Development
Topic: remove a specific item from a table
Replies: 8
Views: 3480

Re: remove a specific item from a table

I'm fairly new to love2d myself so take this with a grain of salt.

Can't you just reverse your addblock function? You know where to place a block when you click the mouse so be reversing the process you should be able to find if there is block in that location.
by Brons
Sun Feb 27, 2011 2:45 pm
Forum: Games and Creations
Topic: Days of Reverse Towlrs
Replies: 24
Views: 12722

Re: Days of Reverse Towlrs

I needed about 20 tries. First I gave up after about 20 tries but after a few hours I had an accidental brain wave and I solved it the first try.
by Brons
Wed Jul 28, 2010 9:14 am
Forum: Support and Development
Topic: Need help with a snake clone
Replies: 3
Views: 1735

Re: Need help with a snake clone

I had hoped I could do it without using tiles. I had hoped I could have it more 'organically'. And I actually think it's possible because it does work when it goes from horizontal movement to vertical movement, but not from vertical to horizontal movement. This makes me suspect there is actually som...
by Brons
Tue Jul 27, 2010 11:50 pm
Forum: Support and Development
Topic: Need help with a snake clone
Replies: 3
Views: 1735

Need help with a snake clone

Hello, Today I've been playing around with LÖVE. It's my first time writing in lua, and it shows. There are some design flaws, especially with the tables, but I don't think that's the problem. It's a snake clone, I've got almost everything done except the snake's tail movement. As you know the tail ...
by Brons
Sun Jul 25, 2010 6:01 pm
Forum: Games and Creations
Topic: Top-Down City With Depth
Replies: 36
Views: 19698

Re: Top-Down City With Depth

Thanks, it works. Great to see what can be done with LÖVE and to learn from it.
by Brons
Sun Jul 25, 2010 11:00 am
Forum: Games and Creations
Topic: Top-Down City With Depth
Replies: 36
Views: 19698

Re: Top-Down City With Depth

I'm sorry for this kick but the files don't seem to be there anymore. As a new LÖVE user I'm interested in this. Could someone rehost these files? I'd appreciate it.