Hi,
I’m using Qiso to manage an isometric map with items (buildings) covering one tile. Everything works fine.
Now I need to make some buildings cover sevral tiles (e.g. 2x3). I had a few thoughts but wanted to check if there was a better approach…
- In my sqlite3 database: I currently have X and Y coordinates for each building, those now become the origin of the building (e.g. top-left). I thought of adding two columns with xSize and ySize representing the number of tiles occupied (from origin) in the building properties.
- Avoiding collision when placing buildings on the map. I need to find a way to say “this tile is occupied”, that’s easily done when checking X and Y (origin) but what would be the best way to check if the tile is taken by a multi-tile building?
- Representation on the map: I guess I need a larger image which will cover several tiles. That should be straight forward.
Thanks
J@V0