How to make Sprite Kit display @2x images from atlas at correct size?

前端 未结 3 636
眼角桃花
眼角桃花 2021-02-05 14:00

When a project only has @2x images because it only targets retina display devices, atlas Sprite Kit atlas gets the scale wrong with the RGBA8888_COMPRESSED setting to use with P

3条回答
  •  没有蜡笔的小新
    2021-02-05 14:25

    For a situation like this you can create two atlases one for retina and one for 1x resoultion.

    If for example your sprite atlas folder was named MySprites.atlas you can keep it just for the 1x images and create a new one with name MySprites@2x.atlas for the retina bitmaps.

    Images keep the suffix e.x @2x~iPad inside MySprites@2x.atlas directory

提交回复
热议问题