简体   繁体   中英

iOS Sprite Kit resize sprite based on screen resolution

Can anyone explain why you can take a background image sized for an iPad retina and put it in a sprite kit app and it resizes fine for all screen resolutions. But, if you take a proportionately sized image and put it on a sprite there doesn't seem to be a way to resize it the same way that the background does? Thanks

Yep. The method talked about in the Ray Wenderlich article is what I ended up using.

LearnCocosD, since you are the man when it comes to this stuff (love your site BTW): what still confuses me is why Obj C would resize the background view like in a normal iOS app but not build the same ability into sprites. Still: Ray Wenderlich and LearnCocos2D remain great resources. Smart people over there. Thanks LearnCocos2D and sangony.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM