Use AppGameKit to generate your tileset cords, in your code you already know what you want ( your tileset loading code ) so do something like this:
//generare tiles cords.
fileid = OpenToWrite ( "tileset1 subimages.txt", 0 )
imgnr = 0
tmp$ = ""
for x = 1 to 6
for y = 1 to 6
tmp$ = tmp$ + Str(imgnr)+":"+Str((x-1)*64)+":"+Str((y-1)*64)+":64:64" + chr(13) + chr(10)
imgnr = imgnr + 1
next y
next x
WriteString ( fileid, tmp$ )
CloseFile ( fileid )
Locate the tileset1 subimages.txt file and copy it to your media folder. you can use the same "tileset1 subimages.txt" file for all your 64x64 tilesets just rename the file.
best regards Preben Eriksen,