Tilemap as a tile in a tilemap
Posted: Tue Aug 09, 2016 2:40 pm
I want to use a randomly assigned tile map as a piece in a larger tile map. How do I go about doing this?
like so
where i and j are the cordinates of the larger array, and r and u are the cordinates of the smaller array
i, j i+roomx, j+roomy
r+i, u+j r+i, u+j
r+i, u+j+tiley
hope that helps.
attached is the working Random tile map generator, but with tiles. All I want is to replace the tiles with tilemaps and draw them.
wasd controls movement, n generates a new map.
like so
where i and j are the cordinates of the larger array, and r and u are the cordinates of the smaller array
i, j i+roomx, j+roomy
r+i, u+j r+i, u+j
r+i, u+j+tiley
hope that helps.
attached is the working Random tile map generator, but with tiles. All I want is to replace the tiles with tilemaps and draw them.
wasd controls movement, n generates a new map.