This post enhances the previous post by the ability of actually placing obstacles which somewhen may become towers.
Posted in Grid Based Games, grids, mochiads
Tagged adjacent, desktop tower defence, grid, node, obstacle, placing, tower, tower defence, Tutorial
In this part the adjacent cells of the acual node are called. This can get handy if we want to implement some kind of pathfinding algorithm. The base for this code is part 2.2. See part 1 for the creation of the basic grid.