SPUDevelopers / Naturalize

A Cocos2d-x turn based strategy game.
Other
11 stars 7 forks source link

Movable units #29

Open Isaac-W opened 9 years ago

Isaac-W commented 9 years ago

We should write a recursive function that checks all directions around the unit to see if the tile can be moved to, based on current movement cost. If the tile has not yet been checked, and we can move to it, add a "open tile" object to a list. The "open tile" object should be a solid colored square that is semi-transparent to provide a tint over the map tiles.