java - CCTMXTiledMap not showing on Android screen -
i'm adding cctmxtiledmap android project it's not showing on screen.
this tried. created map tiled, changed compression in base64 gzip rid of indexoutofbounds issue, , loading generic code:
cctmxtiledmap map = cctmxtiledmap.tiledmap("sewer.tmx"); addchild(map);
i tried different values in addchild method, such as
addchild(map, 0)
or -1, or 1, no luck.
here's debug data:
map = <instance of class org.cocos2d.layers.cctmxtiledmap| tag = -1> map bounding box d=((0.0, 0.0),(768.0, 768.0)) map bounding anchor point =(0.0, 0.0) map bounding position =(0.0, 0.0) map bounding content size =<768.0, 768.0> chidren =[<instance of class org.cocos2d.layers.cctmxlayer| tag = 0>]
my tmx file:
<?xml version="1.0" encoding="utf-8"?> <map version="1.0" orientation="orthogonal" width="32" height="32" tilewidth="24" tileheight="24"> <tileset firstgid="1" name="sewer_tileset_large.png" tilewidth="24" tileheight="24"> <image source="sewer_tileset_large.png" trans="ff00ff" width="1920" height="2170"/> </tileset> <layer name="tile layer 1" width="32" height="32"> <data encoding="base64" compression="gzip"> h4siaaaaaaaac+3baq0aaadcopdpbq8hfaaaapbueqacxwaqaaa= </data> </layer>
the png image, sewer_tileset_large.png in assets folder, next sewer.tmx file. noticed in tmx file generated tiled .png extension omitted, added manually. still no luck.
what missing?
Comments
Post a Comment