Thread
:
tiles[x,y] ?
View Single Post
#
23
12-02-2005, 12:27 AM
ApothiX
Okiesmokie
Join Date: May 2004
Posts: 1,447
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.
")
ApothiX
View Public Profile
View GraalOnline Profile
Find all posts by ApothiX