@ue-too/board-game-engine / index / createHexGrid
関数: createHexGrid()
createHexGrid(
coordinator,width,height,name,variant):number
定義: grid-system/hex-grid.ts:49
Creates a hexagonal grid with offset coordinates (q, r).
パラメータ
coordinator
Coordinator
The ECS coordinator
width
number
The width of the grid (q dimension)
height
number
The height of the grid (r dimension)
name
string
The name of the grid
variant
HexGridVariant = 'odd-r'
The offset coordinate variant: 'odd-r', 'even-r', 'odd-q', or 'even-q'
戻り値
number
The grid entity