Pages

03 May 2010

HTML5 Hex Grid with mouse mapping

A simple hex grid map with mouse mapping just to explore what HTML5 canvas can do (and it looks to me a lot like Cairo).  Maybe someone will start a panzer general clone reusing the code from lgeneral ?

http://www.linuxconsulting.ro/code-repository/repository/html5-hexgrid/hexgrid.html
Or a better example(looks like no one started a panzer general clone so I did):
Open Panzer

3 comments:

  1. Nice - and as it's one of the first hits to come up on my very rudimentary search for something exactly like this - great stuff! I was hoping for a starting point for creating a semi-random hex map generator.

    ReplyDelete
  2. What mods need doing to get a Octagonal grid (points of a compass) please?

    ReplyDelete
  3. V-Nice :o)

    Is it difficult to change to an octagonal grid? The math is doing my head in ....

    ReplyDelete