What problem does it solve?
SpriteKit development can be hard to organize correctly, especially when building scenes with a proper lifecycle, animations, physics interactions, particle effects, and smooth SwiftUI integration.
Core Features & Use Cases
- Scene setup & lifecycle: Configure
SKView/SKScene, frame-cycle expectations, and where to place initialization logic.
- Node design & rendering: Use
SKNode containers and SKSpriteNode visuals, manage zPosition, and reliably find nodes by name.
- Gameplay behavior: Build reusable
SKAction sequences/groups, texture-driven animation, and camera follow/zoom for gameplay + HUD.
- Physics & collisions: Set up
SKPhysicsBody, categories/masks, and contact delegate handling for didBegin/didEnd.
- Particles & effects: Load
.sks emitters, run one-shot explosions, and keep particles in world space via targetNode.
- SwiftUI integration: Embed SpriteKit using
SpriteView, avoid re-creating scenes on re-render, and communicate state safely.
Quick Start
Use the spritekit skill to create an SKScene in SpriteKit with animated sprites, contact-based physics interactions, particle effects, and embed it into SwiftUI using SpriteView stored in @State.