Hello,
I copy pasted the init of Atlas Test Demo 5 to my own project to get something going.
However, when it should be that "THE GREAT GROSSINI SISTERS" or whatever it was, with all the color and stages, mine only shows the "GREAT" part of the whole thing in white letter on Full BLACK background.
Quickpost this image to Myspace, Digg, Facebook, and others!
Wondering what was going on, I added the exact same level and tiles files.....
Currently, my project has nothing. It has a GameScene which adds a GameLayer, and I copy pasted the below to my GameLayer init....
I'm calling this in my GameLayer : Layer class
@implementation Atlas5
-(id) init
{
if( (self=[super init]) ) {
TileMapAtlas *tilemap = [TileMapAtlas tileMapAtlasWithTileFile:@"tiles.png" mapFile:@"levelmap.tga" tileWidth:16 tileHeight:16];
// Convert it to "alias" (GL_LINEAR filtering)
[tilemap.texture setAliasTexParameters];
// If you are not going to use the Map, you can free it now
// NEW since v0.7
[tilemap releaseMap];
[self addChild:tilemap z:0 tag:kTagTileMap];
tilemap.anchorPoint = ccp(0, 0.5f);
id s = [ScaleBy actionWithDuration:4 scale:0.8f];
id scaleBack = [s reverse];
id go = [MoveBy actionWithDuration:8 position:ccp(-1650,0)];
id goBack = [go reverse];
id seq = [Sequence actions: s,
go,
goBack,
scaleBack,
nil];
[tilemap runAction:seq];
}
return self;
}
http://www.ImageShack.us