Questions tagged [hexagonal-grid]
A regular tesselation of a surface where regular hexagons are used for grid tiling.
92
questions
4
votes
1
answer
501
views
Find a encircliement in Hexagonal grid (optimization issue)
I have a hex grid of 10000 cells (100x100). The player can grab a cell next to one of his cells (borders). If the player has formed a ring after placing a cell, I want to get a list of cells that ...
1
vote
0
answers
119
views
Improve performance of hexagonal tiles
I am trying to create a game similar to a board game on a hexagonal grid (also similar to Civilization game).
I want the tiles to be able to display various textures and of course be able to detect ...
0
votes
1
answer
455
views
Which way to subdivide a hex grid?
Here are, it seems, two ways to draw a smaller grid of tiles from an initial hexagon:
On the left, we halve the side length \$s\$ and create most of the new tiles centered at the midpoint of sides. ...
0
votes
1
answer
680
views
Placing rectangular outlines on a hexagonal grid
I'm prototyping a base-building game that uses a hex grid as the basic structure. Hex grids have benefits, but when humans want to build buildings or divide up space, they usually use square/...
0
votes
2
answers
341
views
How to find words on a hex grid
I am trying to make a hex grid based word game. Currently the words are placed from a list of pre-defined words(a list of animals in this case). All colored cells make a word that was placed, while ...
0
votes
1
answer
309
views
Struggling with breadth first search for hex grid
I cant seem to get breadth first search right. Ive gone through redblobs implementation guides of hex grids and have that all figured out but pathfinding is proving to be difficult.
So I have a search ...
2
votes
2
answers
509
views
Finding nearby tile objects with a certain tag more easily
I have generated a grid with hex tiles. I am using two different types of tiles and would like to at some points ask the tiles, how many tiles of each type they have as neighbours (or really, it would ...
0
votes
1
answer
317
views
Best ways to navigate a single step on a hexagonal grid depending on input
Problem
In my puzzle game, the player moves one step at a time on a hexagonal grid. (Not an action game.)
The sequence of steps is important for the gameplay, so it is not only about getting from A ...
2
votes
1
answer
587
views
Formula for attack range using hexagons
I need a little help with a formula to calculate the attack range for my turn-based strat game. Since it's a hexagon grid, I'm having trouble coming up with a formula that would pick the character ...
4
votes
3
answers
355
views
Elegantly transition from 4-grid to 6-grid and back
I find in general map creation that I prefer hex grids for natural environments, but square grids for interior and urban/constructed environments.
Is there a smooth or elegant way to transition ...
0
votes
2
answers
215
views
Touch control pan 3D map
I'm working on recreating the board game "Hex" as a mobile game. I'm working on implementing zoom and pan features using two fingers. I feel like I managed to get the zoom to work, but the ...
6
votes
3
answers
3k
views
How do I sort edge tiles for a hex grid in order to draw a border?
I am trying to sort the edge tiles of a region in my hexagon map. Once it is properly sorted, I can then try to walk through them and attempt at creating a Civ style border map, but I can't seem to ...
7
votes
1
answer
888
views
How can I create a six sided tillable perlin noise image?
I'm attempting to create a tillable hex shaped terrain map using c++.
As part of the process I'd like to use perlin noise, but it seems that in order to make it tillable I'll need to generate it 5 ...
1
vote
1
answer
233
views
Finding equivalent axial coordinates for a wrapping hexagonal map of radius n
I'm creating a wrap around hexagonal map that will potentially render infinatly.
With the method I'm using, I have an x-y coordinate I use to find it's equivalent axial coordinate with the equations:...
1
vote
1
answer
686
views
Why does my tile palette not arrange nicely?
I made my own Hex Point Top Tile sprite sheet, ensuring it's pixel perfect and align well. Slicing in Sprite Editor has no problem too. However, when I drag the sprite sheet to a new Palette in the ...