Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
加载精灵两次当然是一个糟糕的决定。
有没有比这个更好的方法?
firstSprite = CCSprite.sprite("Sprite.png"); secondSprite = CCSprite.sprite(firstSprite.getTexture());
我相信Java版本也支持这种方法。纹理矩形很重要。
secondSprite = CCSprite.sprite( firstSprite.getTexture(), firstSprite.getTextureRect() );