我的遊戲在模擬器中工作正常,但它在設備上有精靈探頭。像這樣的行會給出錯誤:Cocos2d精靈不能在設備上工作
img = [CCSprite spriteWithSpriteFrameName:@"img.png"];
然後:
Assertion failure in -[CCSprite initWithTexture:rect:], /Users/newuser/Documents/Uni/libs/cocos2d/CCSprite.m:171
有人建議一些設備無法處理spritesheets超過1024x1024的大,這是真的嗎?因爲我的是1024x2048,但製作2張spritesheet需要很多努力,所以我一直在尋找這個確認。
謝謝。
它不一定非常努力。在Photoshop中,只需在高度的一半處分配兩個切片,當您導出爲圖像時,它將自動切割它們。 –