englercj / phaser-tiled

A tilemap implementation for phaser focusing on large complex maps built with the Tiled Editor.
MIT License
290 stars 31 forks source link

Hexagonal tilemaps #79

Open njt1982 opened 6 years ago

njt1982 commented 6 years ago

https://github.com/englercj/phaser-tiled/blob/90aca84f9eb382ed9fe6c5bcfa08cdbc2209d6f2/src/tiled/TilemapParser.js#L74

What work would need to be done to get support for hex maps? I assume at bare minimum, the algorithm for laying out the tiles would need attention?

englercj commented 6 years ago

Yup, though I don't work on this library anymore. If I ever get time to work on it, I would be doing it in gl-tiled

njt1982 commented 6 years ago

ah ok :) That'd be https://github.com/englercj/gl-tiled/tree/master/bundles/phaser2 - is that fully cross-platform compatible?

englercj commented 6 years ago

All that bundle would do is add an API that feels more "Phaser-y".

Define "cross-platform compatible"

njt1982 commented 6 years ago

Will it work for native iOS/OSX/Windows builds? Are there any incompatible environments?

englercj commented 6 years ago

It uses WebGL, so it should just work everywhere. If it doesn't that would be surprising, but likely something to do with the hardware rather than the software.