I am creating a universal ios 2D game using cocos2d. I have few images with naming convention as imageName-ipad.png but the app is not able to load this image when i try to load using following line.
coinItem =[CCMenuItemImage itemFromNormalImage:@"coins.png" selectedImage:@"coins.png" target:self selector:@selector(coinsSelected:)];
Where coinItem is CCMenuItem type.
Can anyone please help?
I have confirmed from Cocos2d forum that -ipad support is not in version 1.0.1 of Cocos2d. So i modified CCFileUtils.m – the getDoubleResolutionImage method to implement support for ipad.