Spritekit - not loading @3x images from SKTextureAtlas

后端 未结 5 549
忘掉有多难
忘掉有多难 2020-11-30 07:51

Since my sample project was deleted (I thought this would be much easier to test), I will post some code and images to illustrate my point.

Here are sample images

5条回答
  •  再見小時候
    2020-11-30 08:38

    This bug is still unsolved. By using just @2x images the visual of the app gets broken. Instead choose the right image by looking screen scale.

    textureName = [UIScreen mainScreen].scale > 2.9 ? @"awesome@3x" : @"awesome";
    

提交回复
热议问题