Re: [pygame] Calculating x/y pos for a 2D grid

2007-01-23 Thread Farai Aschwanden
Tnx for testing it! Feel free to use it, no patent on it atm. ;) Am 24.01.2007 um 00:19 schrieb Adam Bark: On 23/01/07, Farai Aschwanden <[EMAIL PROTECTED]> wrote: Hi all No question, except maybe someone already used it (experience?). I found a easy way how to calculate the x and y pos out

Re: [pygame] Calculating x/y pos for a 2D grid

2007-01-23 Thread Adam Bark
On 23/01/07, Farai Aschwanden <[EMAIL PROTECTED]> wrote: Hi all No question, except maybe someone already used it (experience?). I found a easy way how to calculate the x and y pos out of 2D grid. Watch this 4*4 grid. Every number represents the grid number: 0 1 2 3 4

[pygame] Calculating x/y pos for a 2D grid

2007-01-23 Thread Farai Aschwanden
Hi all No question, except maybe someone already used it (experience?). I found a easy way how to calculate the x and y pos out of 2D grid. Watch this 4*4 grid. Every number represents the grid number: 0 1 2 3 4 5 6 7 8 91011 11 1213 14