Triangle Grids

(kvachev.com)

51 points | by Bogdanp 4 days ago ago

7 comments

  • ViscountPenguin 4 hours ago ago

    You can get a lot of the benefits of hexagonal grids with triangular grids if you play your cards right. For example, you can allow units on a given triangle to move as if they were on the hexagonal grid that's formed by gluing triangles together at their corners.

  • o11c 6 hours ago ago

    I suggest using triangles in pairs, since diamonds form a grid nicely.

    5 large strips (with 4 macro-triangles each) can form an icosahedron in a fairly sane way.

    But IMO the biggest mistake people make is trying to make everything fit on a single square; multi-tile objects are very useful. And at that point, why not make everything take several tiles?

    Abandoning tiles entirely in favor of node adjacency can cut memory a lot but requires more thought.

  • pspeter3 8 hours ago ago

    Great write up on the pros of triangle grids. Did you consider using irregular triangles to help with the math? Eg a 2:1 triangle

  • tiffanyh 5 hours ago ago

    Original HN post (43 comments / 3-years ago)

    https://news.ycombinator.com/item?id=32045779

  • ortusdux 7 hours ago ago

    Has anyone made a game using an aperiodic grid (Penrose or the like)? Would make for a fun challenge.