Open rolopogo opened 3 weeks ago
For hexagonal grids we would need to negate the grid offset every other row. Not sure how best to handle this in config.
Maybe something like defining a pattern grid_offset_per_row 4,-4
I'll look into it.
But hexagonal is another thing entirely.
Check ([ ] -> [x]) all that apply, then describe the issue below:
Allow grid cell position to be offset per row and per column
Grid offsets could be used by games that use fake perspective, Grid offsets could also be used to create isometric tiles, hexagonal tiles more easily than creating split sprites that span multiple tiles
Implementation: Add grid_offset_per_row and grid_offset_per_col to allow grids to be transformed into different layouts
In graphics.js getDrawPos, modify offs.x and offs.y by some factor of ij.y and ij.x respectively e.g.
Large offsets will change the total grid proportions, so adjustments should also be made to sections computing world bounds.