2014-09-19 70 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

相關問題