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.
  • 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 folder.
  • macOS
    • Similar to iOS folder with Game1_macOS.entitlements for app capabilities.
      • Game1_macOS.entitlements: App capabilities for macOS.
Rootlevel 2level 3description
<<Project Name>>.xcodeproj
Project
InfoGeneral project information
Build SettingsCompiling and performance optimization settings
Package DependenciesExternal libraries and packages
——————————————————–—————————————————————————
TargetsGeneralBasic setup like app icons and deployment target
Signing & CapabilitiesCode signing and app capabilities
Resource TagsTags for resource optimization
InfoTarget-specific information
Build SettingsPlatform-specific build settings
Build PhasesOrder of operations for app build
Build RulesCustom rules for file processing
——————————–——————————————————–—————————————————————————
Shared
actions.sksSpriteKit file for defining animations and actions visually
game scene.sksScene layout in SpriteKit’s visual editor for game elements
game scene.swiftLogic and interactions for the scene, correlating with game scene.sks
assets.xcassetsAsset catalog for images, animations, and media resources
——————————–——————————————————–—————————————————————————
iOS
AppDelegate.swiftManages application lifecycle events
GameViewController.swiftControls the game’s main view and user interactions
Main.storyboardUser interface layout
LaunchScreen.storyboardApp’s launch screen appearance
——————————–——————————————————–—————————————————————————
tvOS
Similar contents to iOS
——————————–——————————————————–—————————————————————————
macOS
Game1_macOS.entitlementsApp capabilities for macOS
——————————–——————————————————–—————————————————————————