Hex to Hex Distance

I am stubbing out some distance code which calculates the distance from one hex center to the next hex center, my only problem is that I get a complier error of “expression must have pointer-to-object type,” this error appears at the “col” variable in the map array here is my stubbed-out code.

 int *closest = nullptr; int numRows = 10; int numCols = 10; int mouseClickX = 5; int mouseClickY = 5; int *map = 0; int fromClosestCenterToClick = INT_MAX; for (int ro

Published by CelleSports

CelleSports is a Game development, News outlet, and Social Cell community. Build your cells or teams for any game and start communicating efficiently. Join us in building the number one eSport and gaming community in the World. Join Cell eSports

Leave a comment