spritekit

Build interactive 2D iOS game scenes with SpriteKit.

Updated May 6, 2026
One-click install
npx skills add https://github.com/Roy-wonji/claude-config --skill spritekit-roy-wonji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spritekit
Source: https://github.com/Roy-wonji/claude-config/tree/main/skills/swift-ios-skills/skills/spritekit
Command: npx skills add https://github.com/Roy-wonji/claude-config --skill spritekit-roy-wonji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about spritekit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate SpriteKit with SwiftUI without recreating the scene on re-render?

Embed SKScene in SwiftUI using SpriteView stored in a @State variable to prevent SwiftUI re-render scene recreation and ensure safe state communication across updates.

How do I set up physics collisions and contact detection in SpriteKit?

Configure SKPhysicsBody with category and contact masks, wire the contactDelegate, and handle didBegin/didEnd interactions for correct bitmask collision detection in SpriteKit.

What is the correct way to run one-shot particle effects in SpriteKit?

Run one-shot particle effects in SpriteKit by loading .sks emitters into SKEmitterNode, keeping particles in world space via targetNode, and performing one-shot emitter cleanup after the explosion finishes.

Can I use SKAction sequences to build camera follow and zoom mechanics in SpriteKit?

Yes, you can build camera follow and zoom mechanics by creating reusable SKAction sequences and groups to drive texture-based animations and gameplay HUD behavior within an SKScene.

Why does my SpriteKit scene scale incorrectly when the view resizes?

Your SpriteKit scene scales incorrectly because the appropriate scale modes were not configured during SKView and SKScene initialization, affecting frame-cycle expectations and node rendering behavior.