In Cocos2d iphone: Tiledmap showing blank display -


in cocos2d iphone project , trying add tiled map. tiled map has 1 image layer.i trying add tiledmap below code.

-(id) init { if( (self=[super init])) {     themape = [cctmxtiledmap tiledmapwithtmxfile:@"demomap.tmx"];     [self addchild:themape z:1]; } return self; } 

and source of tile map is:

<?xml version="1.0" encoding="utf-8"?> <map version="1.0" orientation="orthogonal" width="20" height="180" tilewidth="32" tileheight="32"> <tileset firstgid="1" name="block" tilewidth="32" tileheight="32"> <image source="block.png" width="90" height="34"/> <tile id="0"> <properties>   <property name="type" value="base"/> </properties> </tile> </tileset> <imagelayer name="backgorund" width="20" height="180">  <image source="bgimage.png"/> </imagelayer> </map> 

and have bgimage.png file in resource folder.

when contains tile layer display layer. don't know wrong this?

cocos2d-iphone not support tiled's image layer, tile layers.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -