Code

Coordinate System for Hexile

Posted by fdg-developer on October 29, 2008
Developer Blog, Hexile / No Comments

Our tile layout framework for Hexile is complete.  There were two noteworthy milestones in reaching this accomplishment.  First, the creation of the horizonal hexagon layout, supporting multiple layers, was finished.  The hurdle was about how to tackle multiple tiles of the same, irregular shape.  We decided on subclassing UIView (no, not CALayer) for the creation of our Tile object.  These UIView’s are out-of-the-box adept at handling internal animations and touch states.  Each one contains a UIImageView that holds the tile image.

Original dual-layered coordinate system

Original dual-layered coordinate system

Continue reading…

Tags: , , , , , ,