I am trying to make a game in Cocos2d that uses an orthogonal tilemap. I create the map in tiled using a simple tileset I drew in Adobe Illustrator. The tiles are 32x32 pixels, and the map is only 20x20 tiles. When I use the tilemap in Cocos2d, it works fine when I test it out on the iPhone simulator. However, when I test it on my iPod touch, the app crashes (terminates with NSException) and it gives me an error saying
-(id) initWithTexture:(CCTexture2D*)texture
{
NSAssert(texture!=nil, @"Invalid texture for sprite");
CGRect rect = CGRectZero;
rect.size = texture.contentSize;
return [self initWithTexture:texture rect:rect];
}
I've messed with the map and the tiles but I cannot get the app to work. Any help is appreciated. Thanks.