Original Post
Hi,
I have a question about implementing textures in my game. I know that one way to do it is to have a map array where each tile stores an integer value which tells us which texture goes there, for ex:
map[10][10] = {1,1,2,2,1,1...}; etc...
then, in our program, each integer represents a particular texture, and the textures can either be separate as in: 1 corresponds to grass.bmp, 2 corresponds to mountains.bmp
or they can be stored in one large bitmap and have some sort of offset....
anyways, I was wondering how some games handle maps made by users that contain their own imported textures? It doesn''t seem like you can simply map to an integer like above. How can you ensure that each texture is mapped to a unique integer? Any ideas? Thanks,
John