spritekit
Build 2D games and animations using SpriteKit. Use when creating game scenes with SKScene and SKView, adding sprites with SKSpriteNode, animating with SKAction sequences, simulating physics with SKPhysicsBody and contact detection, creating particle effects with SKEmitterNode, building tile maps, using SKCameraNode, or integrating SpriteKit scenes in SwiftUI with SpriteView.
npx skills add dpearson2699/swift-ios-skills --skill spritekit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SpriteKit Build 2D games and interactive animations for iOS 26+ using SpriteKit and Swift 6.3. Covers scene lifecycle, node hierarchy, actions, physics, particles, camera, touch handling, and SwiftUI integration. ## Contents - [Scene Setup](#scene-setup) - [Nodes and Sprites](#nodes-and-sprites) - [Actions and Animation](#actions-and-animation) - [Physics](#physics) - [Touch Handling](#touch-handling) - [Camera](#camera) - [Particle Effects](#particle-effects) - [SwiftUI Integration](#swiftui-integration) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Scene Setup SpriteKit renders content through `SKView`, which presents an `SKScene` -- the root node of a tree that the framework animates and renders each frame. ### Creating a Scene Subclass `SKScene` and override lifecycle methods. The coordinate system origin is at the bottom-left by default. ```swift import SpriteKit final class GameScene: SKScene { override func didMove(to view: SKView) { backgroundColor = .darkGray physicsWorld.contactDelegate = self physicsBody = SKPhysicsBody(edgeLoopFrom: frame) setupNodes() } override func update(_ currentTime: TimeInterval) {
- Contents
- Scene Setup
- Creating a Scene
- Presenting a Scene (UIKit)
- Scale Modes
- Frame Cycle
- Nodes and Sprites
- Common Node Types
- Creating Sprites
- Drawing Order
- Naming and Searching
- Actions and Animation
- Basic Actions
- Combining Actions
What does the spritekit skill do?
Build 2D games and animations using SpriteKit. Use when creating game scenes with SKScene and SKView, adding sprites with SKSpriteNode, animating with SKAction sequences, simulating physics with SKPhysicsBody and contact detection, creating particle effects with SKEmitterNode, building tile maps, using SKCameraNode, or integrating SpriteKit scenes in SwiftUI with SpriteView.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill spritekit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.