如果这个问题已经得到回答,我深表歉意,但是无论我在哪里,我似乎都无法理解。我一直在尝试使用Xcode中的SpriteKit制作国际象棋游戏。我不了解资产文件夹中的1x,2x和3x选项。
当我将其放在3倍时,图像似乎是最小的,这似乎违反直觉。另外,最适合设计什么分辨率?似乎iOS模拟器中未使用实际的iPhone分辨率。
谢谢
最佳答案
1x,2x,3x是根据手机分辨率不同的图像大小。
您可以在下面的链接中根据设备分辨率找到图像大小。
IconMatrix
基本上,
@1x images are for the iPhone 3GS - 'standard' resolution devices (3.5" screens)
@2x images are for the iPhone 4 and 4S which contain 3.5" Retina screens and also used for the iPhone 6.
Retina 4 @2x are for the iPhone 5 and 5s (4" Retina screens)
@3x images are for the new iPhone 6+,iPhone 6S+ (5.5" super-Retina [3x] screen)
注意:-如苹果在文件中所述
对于所有图像和图标,建议使用PNG格式