S
Shadowblitz16
Guest
hey it me again
I was just wondering the math behind the nes tilegrid
I know that it uses 8x8 tiles and can put them together to make bigger sprites
however I was wondering how they spaced their grids out
I have looked it up and it seems they have split their 1d tile grid up something like so
"i mod 8" <-- x
"i div 8" <-- y
however this only represents 1 pixel in between the index
I need to apply a space of 8 pixels to represent the tiles
I was just wondering the math behind the nes tilegrid
I know that it uses 8x8 tiles and can put them together to make bigger sprites
however I was wondering how they spaced their grids out
I have looked it up and it seems they have split their 1d tile grid up something like so
"i mod 8" <-- x
"i div 8" <-- y
however this only represents 1 pixel in between the index
I need to apply a space of 8 pixels to represent the tiles