Overllaping matrices

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Posts: 59
Joined: Tue May 28, 2013 11:03 pm
Location: France

Re: Overllaping matrices

Post by chezrom » Fri Aug 23, 2013 7:57 am

Your code do in fact an intersection of two sorted arrays, ie produces an array with the common values.

For me, a matrix is a 2D arrays, and I must admit that I don't know what is a "matrix intersection"

EDIT : Oups, vrld is faster than me

User avatar
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Overllaping matrices

Post by Ranguna259 » Fri Aug 23, 2013 1:51 pm

Ref wrote:
Ranguna259 wrote: BTW, rectangle intersection is not an easy thing to do, that's why there's always a code on most programing languages to do that for you but there isn't one in löve.
Is this where you are heading?
Oh god yes, once the lib is out I'm gonna ask you for some help ;)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

Party member
Posts: 183
Joined: Wed Mar 02, 2011 11:15 pm
Location: Ohio, USA

Re: Overllaping matrices

Post by LuaWeaver » Sat Aug 24, 2013 6:29 pm

What he wants is not just a "matrix" intersection, he wants "world" intersection, where each tile region is represented in a matrix. He wants to find the intersection, given the "position" of the matrices, relative to another.

I think.
"your actions cause me to infer your ego is the size of three houses" -finley

Posts: 13
Joined: Sat May 25, 2013 10:42 pm

Re: Overllaping matrices

Post by tetsuken » Fri Nov 08, 2013 4:25 am

Guys sorry for the late answer, i'm a seafare worker so sometimes i go on ship and when i come back 1 month or more has passed.

Anyway, thats was a very hot topic i fought it could be and i apreciate all answers. VRLD i dont want an intersection of matrix only to know the numbers of the matrix, think about that, if the matrices has intersection they have number in comon and this mean value so that means a "true" statement so i will know that tha matrix can not go on the place it was intended to go, so roll again for a new place until i found a place for the matrix(room) that is not over any of other rooms on the dungeon level.
By the way this is not one kind of dream idea, i alreade implemented that on unity 3d to make my random generator dungeon level, i was looking for some comand helps because on the c# i can handle 2darrays and that make things easy to do. In love2d/lua was a bit trick found a code to make a 2d array from a normal array( in this case table). Thas way i was looking for some guys seniors then me on lua for help :D.
Of course i still didnt know how to make this intersection function on lua, if any one Know i will apreciate.

P.S.: i think this topic is very interesting on the comunity, that would help ppl to make procedural levels on their games.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests