
Spritekit
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
What it does
- Covers scene lifecycle, node hierarchy,
SKActionanimation, 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 forSKPhysicsBody - 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
SpriteViewin SwiftUI
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill spritekit -yInstalls 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
- Nodes and Sprites
- Actions and Animation
- Physics
- Touch Handling
- Camera
- Particle Effects
- SwiftUI Integration
- Common Mistakes
- Review Checklist
- 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.
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- Cryptokit3.4K
- Metrickit3.4K
- Pdfkit3.4K
- Gamekit3.4K
- Swift Architecture3.4K
- Eventkit3.4K
- Musickit3.3K
- Pencilkit3.3K
- Ios Simulator3.3K
- Carplay3.3K
- Scenekit3.3K
- Accessorysetupkit3.3K
- Homekit3.3K
- Callkit3.3K
- Cryptotokenkit3.3K
- Financekit3.3K
- Paperkit3.3K
- Adattributionkit3.3K
- Passkit3.3K
- Audioaccessorykit3.3K
- Dockkit3.3K
- Swift Security3.3K
- Browserenginekit3.2K
- Appmigrationkit3.2K
Similar to Spritekit
More Game Development
ios-gaming-skillsPlugindpearson2699/swift-ios-skills1.3K starsGame development frameworks: GameKit, SpriteKit, SceneKit, TabletopKit
scenekitSkilldpearson2699/swift-ios-skills3.3K installsMaintenance-mode SceneKit guide for existing 3D scenes, with RealityKit routing for new projects.
ios-animationsSkillpproenca/dot-skills364 installsOpinionated SwiftUI animation craft guide enforcing motion tokens, @Equatable views, and clinic architecture boundaries.
swiftui-animationSkilljamesrochabrun/skills570 installsAdvanced SwiftUI animation guidance covering springs, transitions, matched geometry, and Metal shader effects for iOS and macOS.