Apple Game Development: Multi-Platform 2D Game Development with SpriteKit
Project Structure
- Xcode Project File (
<<Project Name>>.xcodeproj
)- Project
Info
: General project information.Build Settings
: Compiling and performance optimization settings.Package Dependencies
: External libraries and packages.
- Targets
General
: Basic setup like app icons and deployment target.Signing & Capabilities
: Code signing and app capabilities.Resource Tags
: Tags for resource optimization.Info
: Target-specific information.Build Settings
: Platform-specific build settings.Build Phases
: Order of operations for app build.Build Rules
: Custom rules for file processing.
- Project
- Shared
actions.sks
: SpriteKit file for defining animations and actions visually.game scene.sks
: Scene layout in SpriteKit’s visual editor for game elements.game scene.swift
: Logic and interactions for the scene, correlating withgame scene.sks
.assets.xcassets
: Asset catalog for images, animations, and media resources.
- iOS
AppDelegate.swift
: Manages application lifecycle events.GameViewController.swift
: Controls the game’s main view and user interactions.Main.storyboard
: User interface layout.LaunchScreen.storyboard
: App’s launch screen appearance.
- tvOS
- Similar contents to iOS folder.
- macOS
- Similar to iOS folder with
Game1_macOS.entitlements
for app capabilities.Game1_macOS.entitlements
: App capabilities for macOS.
- Similar to iOS folder with
Root | level 2 | level 3 | description |
---|---|---|---|
<<Project Name>>.xcodeproj | |||
Project | |||
Info | General project information | ||
Build Settings | Compiling and performance optimization settings | ||
Package Dependencies | External libraries and packages | ||
—————————— | ————————– | ————————————————————————— | |
Targets | General | Basic setup like app icons and deployment target | |
Signing & Capabilities | Code signing and app capabilities | ||
Resource Tags | Tags for resource optimization | ||
Info | Target-specific information | ||
Build Settings | Platform-specific build settings | ||
Build Phases | Order of operations for app build | ||
Build Rules | Custom rules for file processing | ||
——————————– | —————————— | ————————– | ————————————————————————— |
Shared | |||
actions.sks | SpriteKit file for defining animations and actions visually | ||
game scene.sks | Scene layout in SpriteKit’s visual editor for game elements | ||
game scene.swift | Logic and interactions for the scene, correlating with game scene.sks | ||
assets.xcassets | Asset catalog for images, animations, and media resources | ||
——————————– | —————————— | ————————– | ————————————————————————— |
iOS | |||
AppDelegate.swift | Manages application lifecycle events | ||
GameViewController.swift | Controls the game’s main view and user interactions | ||
Main.storyboard | User interface layout | ||
LaunchScreen.storyboard | App’s launch screen appearance | ||
——————————– | —————————— | ————————– | ————————————————————————— |
tvOS | |||
Similar contents to iOS | |||
——————————– | —————————— | ————————– | ————————————————————————— |
macOS | |||
Game1_macOS.entitlements | App capabilities for macOS | ||
——————————– | —————————— | ————————– | ————————————————————————— |