Tilemap Pathfinding on Hexagonal Maps (showcase)

I thought you'd like to see this pathfinding example on a hexagon tilemap. Unfortunately, I can't embed images so you'll have to click on the links (sorry for that).


Image: http://tilemapkit.com/tkwp/wp-content/uploads/Screen-Shot-2015-07-11-at-20.06.18.png

Video: https://www.youtube.com/watch?v=mq9UGYRiaag


Code sample:


NSArray* walkableTiles = [map tilesWithProperty:@"walkable" value:@1];

NSArray* blockedTiles = [map tilesWithProperty:@"blocked" value:@1];

GKGridGraph* graph = [map gridGraphForTileLayersNamed:@[@"Ground", @"Objects", @"Vehicles"]

walkableTiles:walkableTiles

blockedTiles:blockedTiles

diagonalsAllowed:YES];


For more info see http://tilemapkit.com

Tilemap Pathfinding on Hexagonal Maps (showcase)
 
 
Q