Thread: tiles[x,y] ?
View Single Post
  #23  
Old 12-02-2005, 12:27 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
y * 16 + x
y * w + h is how one dimensional arrays are indexed with x and y parameters. (it makes sense, too, after you have one row done, you will add 1 to y, which makes the next row (1*16) = 16 + x)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote