gamnit :: TileSet :: subtextures
# Cache of the subtextures of tiles
var subtextures: Array[Texture] is lazy do
var subtextures = new Array[Texture]
for j in [0..nb_rows[ do
for i in [0..nb_cols[ do
subtextures.add texture.subtexture(
i.to_f*width.to_f, j.to_f*height.to_f, width.to_f, height.to_f)
end
end
return subtextures
end
lib/gamnit/tileset.nit:37,2--47,4