Page 1 of 1

SGDK - tiles loading question

Posted: Sat Jun 08, 2013 11:05 pm
by Helghast
Quick one,

How does an array of tiles get generated from an image?
As one big list of tiles, or is it a multidiensional array?

I'm trying to make a function that loads a certain part of an image, but for the calculation to work, I need to know that ofcourse.

Regards,
-D.

Posted: Mon Jun 10, 2013 7:26 pm
by Stef
It really depends of what tool and parameters you use to transform your image in tiles. Genres will build a simple array for tile date from your image and can optimize the tileset so you don't have any duplicate tiles for instance.