You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check ([ ] -> [x]) all that apply, then describe the issue below:
I have searched the tracker for similar issues (including closed ones)
I have provided a detailed example for how this feature should work
I have provided a use case for this feature, e.g. short description/share link of a game you're making and how you'd use the feature in that game, other things you've tried, edge cases, etc. (if applicable)
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.
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
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.
The text was updated successfully, but these errors were encountered: