I am new to Swift, and am currently making a game with xcode, and have hundreds of frames of art for the game, all of which are around 60 by 60 pixes as they are pixel art. My problem arises when I try to scale the image with the generic .scale() module. As soon as I start to scale the image it immediately loses almost all of its quality and becomes incredibly fuzzy. I was wondering how I may try to scale an image so that all of its quality remains, thanks in advance! A sample of my scaling is shown below:
TestSprite2.size = CGSize(width: 100, height: 100)
TestSprite2.zPosition = 1
TestSprite2.position = CGPoint(x: TestSprite.size.width / 2, y: TestSprite.size.height / 2)
TestSprite.addChild(TestSprite2)
Check this post about almost the same problem
What Is The Best Way To Display Pixel Art In Sprite Kit?
by the way, there are actual algorithms to properly scale pixel art, you can read about them here
For starters, I suggest you to try scaling by a factor of 4 and see if that helps. so from 60 * 60, scale to 240 * 240