3 ms·
Kind of a nostalgia thing to see this, as one of my earliest answers on gamedev stack was about creating a hex map (See https://gamedev.stackexchange.com/questi
by pugworthy 6y ago
Kind of a nostalgia thing to see this, as one of my earliest answers on gamedev stack was about creating a hex map (See https://gamedev.stackexchange.com/questions/6382/how-to-create-a-hexagon-world-map-in-php-from-a-database-for-a-browser-based-str https://gamedev.stackexchange.com/questions/6382/how-to-crea...)
I cheated and used hex-shaped png files but looking back using CSS to just auto-shape the PNG would be good.
That said, if you ARE using textures in the hexes and you'd like to actually tile them, you'll have to explicitly design an image that will tile. So you might as well just create hex shaped images like this and forget getting too fancy.
- pugworthy 6y agoSo there's one trick that's kind of cool using PNG images (with transparency) for your tiles. You can have parts of the image that actually extend out of the tile. So a tree can extend off the top of the tile in a pseudo-isometric style. Or a castle, or a mountain, or anything.