Drawing hex tiles in Cocos2d for iOS -


i want draw hexagonal tile map. tmx files include more heavyweight hex grid need. don't need images black/transparent background hex outline on top.

so far have this:

cctmxtiledmap *map = [cctmxtiledmap tiledmapwithtmxfile:@"hexa-test.tmx"]; 

is there built-in routine or standard approach doing this?

(i new cocos2d ios.)

thanks

as far i've seen in cocos2d, tilemap built-in way draw hex map. if want else, you'll have roll own -- don't think it's going difficult do.

try this page info on basic hex drawing algorithm.

there's this page draws many hexagons in map.

hope helps.
mike


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -