Cocos2d-Swift v3.x Sprite Builder : In iPad iPhone sd images are used. -ipad suffix ignored -
code:
var bg = ccsprite(imagenamed:"background.png") images used in resource:
background-hd.png background-ipad.png background-ipadhd.png background-iphone5hd.png background.png in device background.png(320x480) used, other images ignored. how fix ?
retina display not enabled...how enable retina display in v3 ?
here working sample code problem.
i'm not advanced user of spritebuilder have concerns issue.
as using sprite builder starting project, configures ccfileutils distinguish different devices' resources looking @ folders, not prefixes. in app delegate can see line:
[ccbreader configureccfileutils]; going method can see search mode file utils set ccfileutilssearchmodedirectory
sharedfileutils.searchmode = ccfileutilssearchmodedirectory; so need use publish folders , copy background image each of them same name (background.png), different resolution each device. 
you don't need use image suffixes in spritebuilder @ all.
Comments
Post a Comment