I know this might be a simple question. I got error on running (not compile) after include tilemap using these files I got from cocos2d demo package:
http://www.mediafire.com/?sharekey=77e65993fe779bfc7432d3c9683f450ae04e75f6e8ebb871
do i need only these two file?
and here is the code from super init:
//================BEGIN CODE ===========
-(id) init
{
if( (self=[super init]) ) {
TileMapAtlas *tilemap = [TileMapAtlas tileMapAtlasWithTileFile:@"tiles.png" mapFile:@"levelmap.tga" tileWidth:16 tileHeight:16];
// Create an Aliased Atlas
[tilemap.texture setAliasTexParameters];
[self addChild:tilemap z:0];
tilemap.anchorPoint = ccp(0, 0);
tilemap.position = ccp(-20,-200);
}
return self;
}
//====================== END CODE=================
There's no error on code but the map won't show. any help appreciated and hope others member can learn from my mistake as well