How do I represent a hextile/hex grid in memory?

前端 未结 9 550
迷失自我
迷失自我 2020-12-04 05:23

Say I\'m building a board game with a hextile grid, like Settlers of Catan:

\"Hosted

Note that

9条回答
  •  借酒劲吻你
    2020-12-04 05:44

       2
    7     3
       1   
    6     4
       5
    

    You can also try to 'flat' rows of your map. For this example it would be:

      2
    7 1 3
    6 5 4
    

    Its sometimes more useful to have rows in one row:P

提交回复
热议问题