Tuesday, March 13, 2018

java - How to store 2D tile-map


I want to create a 2D map composed of small tiles, that should look like voxels (eg. this just from side).


I think I can make a structure like Voxel2D, that have int X, Y and some Color, and every Voxel2D is going to be 5x5 pixels (so multiply X and Y by 5 when drawing).


But now how should I store the whole map? In a 2D array like classic Tile-map, or is there any faster way?




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...