Managing image assets in Cocos2dx project for iOS and Android
I have four sets of images for my iOS app. For example:
aImage.pvr.ccz
aImage-hd.pvr.ccz
aImage-ipad.pvr.ccz
aImage-ipadhd.pvr.ccz
How can I use or modify these images so they work with my Cocos2dx Android
app?
Sounds like png is the safest image format to use on Android since not all
devices support pvr compressed images. Before I export all the images to
png format I want to understand the file extensions and directory
structure that I'll use for the Android app.
Maybe it's best to place the images in the Resources directory and have
build_native.sh copy them to the assets directory in the Android project.
If so then how are the various resolutions handled?
Or maybe the standard practice is using drawable-ldpi, drawable-mdpi etc
directories. In that case I believe the image names need to be all
lowercase. If this is the standard practice then what's the purpose of the
Resources directory? Any guidance is much appreciated!
No comments:
Post a Comment