【发布时间】:2014-01-02 18:41:46
【问题描述】:
当一个项目只有 @2x 图像,因为它只针对视网膜显示设备,atlas Sprite Kit atlas 的比例错误,因为 RGBA8888_COMPRESSED 设置与 PVR 纹理一起使用。 RGBA8888_PNG(默认)有时可以正常工作。
在切换到 atlas 之前,我将所有 @2x 图像放在一个组中并加载它们:
sprite = [SKSpriteNode spriteNodeWithImageNamed:@"theImage.png"];
没问题。正确的大小。
现在使用 atlas 和 RGBA8888_COMPRESSED,我得到了 SKTexture 并且图像太大了。完全相同的节点和配置。仅使用来自 atlas 的 SKTexture。
为什么会这样?
【问题讨论】:
标签: ios iphone sprite-kit sktextureatlas