So I'm playing around with an idea and I'm a little unsure what exactly these numbers mean that are churned out from the code below (from the @map.data that's held in $game_map).
I have this code set up to nosy into the map data for the current map:
d = $game_map.data
for x in 0..d.xsize
for y in 0..d.ysize
for z in 0..d.zsize
p d[x, y, z]
end
end
end
I'm intrigued by the contents of the element of the array referenced by [x, y, z]. On the map that I'm calling this code on, I get a 1536, followed by 2 zero values and a nil value.
I'm hoping that someone can give me some clue as to what these all mean, and in the case of the numbers, how they're used to get what the tile actually is.
I know both Modern and Cozzie have played with these numbers as I'm using those to get an idea of what's going on, but having spent all day reading a lot of maths on graphical projection and other related things like algorithms, my brain's a little cooked as it is and I'm going a little code blind looking at it.
Any clue/pointers would definitely be appreciated.
Thanks in advance.