SpriteKit Safe Area
Handle the screen's safe areas with collapsing margins in a SpriteKit SKScene.
Handle the screen's safe areas with collapsing margins in a SpriteKit SKScene.
Use a dedicated sprite component with GameplayKit using Swift to decouple rendering from transformations.
Create a transform component for GameplayKit in Swift to get a clean and robust API for everything related to position, rotation, and scale.
Setup a ticker with Swift and SpriteKit to have relevant relevant time information like delta time available anywhere in your game code.
Create a common Game VFX with SpriteKit, useful for trailing effects like projectiles and magic. Based on the less used components SKCropNode, SKEffectNode, and SKWarpGeometryGrid.
Use Swift protocols together with GameplayKit's GKComponents for a convenient and flexible way to add all kinds of optional visual debug info during gameplay.
Let's take a look at a solution for SpriteKit when handling multiple resolutions and aspect ratios for a pixel based game which has to work consistently on any screen size.