简体   繁体   中英

Android cocos2d fit sprite to screen

I make a game with cocos2d ported on android and i'm try to stretch CCSprite to fit screen. I founded the answer Images handling in cocos2d android? but this way suggests a big blow on size the app. Do you have another suggestion?

Have you tried changing the scale of the sprite? You could calculate the factor between sprite and screen dimensions, and apply it to the sprite scale.

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