2014-09-19 67 views
1

有没有人能够在xcode 6中使用模拟器来使用地图集中的3x图像?每当我将它们加载到SKTextureAtlas中时,它都会使用2x图像。SKTextureAtlas和3x图像

如果我把[email protected][email protected]放在地图集里面,我的iphone 6/plus模拟器将总是使用2x图片。

let texture = shipAtlas.textureNamed("ship") // always uses 2x image 

回答

0

显然你需要有设置(在项目设置)推出的图像,以便Xcode中识别不同的屏幕尺寸正确

+1

我有完全同样的问题,设置启动图像并不能解决问题。你有任何其他的假设如何加载3倍而不是2倍? – alexburtnik 2014-12-08 18:11:27

+0

这是我在spritekit中加载图像的方式。看看我的回答 http://stackoverflow.com/questions/27284856/spritekit-help-understanding-scaling/27364020#27364020 – hamobi 2014-12-08 18:20:55

+1

是的,我存储我的图像以类似的方式,但是当涉及到纹理地图集iphone6 + ,3x后缀简单地被忽略:http://www.raywenderlich.com/forums/download/file.php?id=2156 – alexburtnik 2014-12-09 07:26:51

相关问题