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.
もちろん、スプライトを 2 回ロードするのはひどい決断です。
これよりうまくいく方法はありますか?
firstSprite = CCSprite.sprite("Sprite.png"); secondSprite = CCSprite.sprite(firstSprite.getTexture());
Java版もこの方法をサポートしていると思います。テクスチャ rect は重要です。
secondSprite = CCSprite.sprite( firstSprite.getTexture(), firstSprite.getTextureRect() );