I am planning to make a tower defense game that run on iPhone and iPad. I need some advice on how to setup the basic layout since I haven’t done this before.
Can someone provide some suggestions on following areas?
I am going to use 2d plane and apply the map image to it, and use it as the ground. I create 2d sprites prefabs and move them on the map and use them as towers. Will put orthographic camera with 45 degrees to get an isometric view.
The big question I am having is how to move the creeps using A* algorithm (http://www.arongranberg.com).
a. I can create a nav mesh with the path the creeps are travelling (will it be very costly to put a mesh?)
b. Put cubes as colliders to create a path for the creeps
Which one is better? Is there any other way to do this?
Because your are targeting mobile platforms I would just setup a matrix defining the virtual grid (could be read from a bitmap) with walls and find the path using A* or another algorithm. Similar to this example http://qiao.github.io/PathFinding.js/visual/ Then move the creeps from cell to cell. Also wall tiles could be placed in world space by reading the matrix. With this solution you don’t need any physics for the pathfinder itself.