New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Catalog guide for 2D games and animation in SpriteKit, covering scenes, sprites, actions, physics, and SwiftUI.

skills.sh installs
3.4K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers scene lifecycle, node hierarchy, SKAction animation, physics with contact detection, particles, tile maps, and camera control
  • Includes frame-cycle order, scale modes, drawing order with zPosition, and bit-mask collision categories for SKPhysicsBody
  • Enforces a rule that contact callbacks only queue events, with node and body changes applied later in update(_:)
  • Designed for iOS 26+ and Swift 6.3 projects that build 2D games or interactive scenes, including SpriteView in SwiftUI

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill spritekit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

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.

import SpriteKit

final class GameScene: SKScene {
    override func didMove(to view: SKView) {
        backgroundColor = .darkGray
        physicsWorld.contactDelegate = self
        physicsBody = SKPhysicsBody(edgeLoopFrom: frame)
        setupNodes()
    }

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Game Development, Mobile Apps
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Spritekit

More Game Development