├── CombinedSpriteKitSceneKit.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── DavisAllie.xcuserdatad │ └── xcschemes │ ├── CombinedSpriteKitSceneKit.xcscheme │ └── xcschememanagement.plist ├── CombinedSpriteKitSceneKit ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Pause Button.imageset │ │ ├── Contents.json │ │ └── Pause Button.png │ └── Play Button.imageset │ │ ├── Contents.json │ │ └── Play Button.png ├── Info.plist ├── MainScene.swift ├── OverlayScene.swift └── ViewController.swift ├── CombinedSpriteKitSceneKitTests ├── CombinedSpriteKitSceneKitTests.swift └── Info.plist └── README.md /CombinedSpriteKitSceneKit.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 602C901A1B0DD5B5001EE880 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602C90191B0DD5B5001EE880 /* AppDelegate.swift */; }; 11 | 602C901C1B0DD5B5001EE880 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602C901B1B0DD5B5001EE880 /* ViewController.swift */; }; 12 | 602C901F1B0DD5B5001EE880 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 602C901D1B0DD5B5001EE880 /* Main.storyboard */; }; 13 | 602C90211B0DD5B5001EE880 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 602C90201B0DD5B5001EE880 /* Images.xcassets */; }; 14 | 602C90241B0DD5B5001EE880 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 602C90221B0DD5B5001EE880 /* LaunchScreen.xib */; }; 15 | 602C90301B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602C902F1B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.swift */; }; 16 | 602C903A1B0DD5F3001EE880 /* MainScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602C90391B0DD5F3001EE880 /* MainScene.swift */; }; 17 | 602C903C1B0DD610001EE880 /* SpriteKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 602C903B1B0DD610001EE880 /* SpriteKit.framework */; }; 18 | 602C903E1B0DD615001EE880 /* SceneKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 602C903D1B0DD615001EE880 /* SceneKit.framework */; }; 19 | 602C90401B0DD838001EE880 /* OverlayScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 602C903F1B0DD838001EE880 /* OverlayScene.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 602C902A1B0DD5B5001EE880 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 602C900C1B0DD5B5001EE880 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 602C90131B0DD5B5001EE880; 28 | remoteInfo = CombinedSpriteKitSceneKit; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 602C90141B0DD5B5001EE880 /* CombinedSpriteKitSceneKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CombinedSpriteKitSceneKit.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 602C90181B0DD5B5001EE880 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 602C90191B0DD5B5001EE880 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 602C901B1B0DD5B5001EE880 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 602C901E1B0DD5B5001EE880 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 602C90201B0DD5B5001EE880 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 602C90231B0DD5B5001EE880 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 602C90291B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CombinedSpriteKitSceneKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 602C902E1B0DD5B5001EE880 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 602C902F1B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CombinedSpriteKitSceneKitTests.swift; sourceTree = ""; }; 43 | 602C90391B0DD5F3001EE880 /* MainScene.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MainScene.swift; sourceTree = ""; }; 44 | 602C903B1B0DD610001EE880 /* SpriteKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SpriteKit.framework; path = System/Library/Frameworks/SpriteKit.framework; sourceTree = SDKROOT; }; 45 | 602C903D1B0DD615001EE880 /* SceneKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SceneKit.framework; path = System/Library/Frameworks/SceneKit.framework; sourceTree = SDKROOT; }; 46 | 602C903F1B0DD838001EE880 /* OverlayScene.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OverlayScene.swift; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 602C90111B0DD5B5001EE880 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 602C903E1B0DD615001EE880 /* SceneKit.framework in Frameworks */, 55 | 602C903C1B0DD610001EE880 /* SpriteKit.framework in Frameworks */, 56 | ); 57 | runOnlyForDeploymentPostprocessing = 0; 58 | }; 59 | 602C90261B0DD5B5001EE880 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 602C900B1B0DD5B5001EE880 = { 70 | isa = PBXGroup; 71 | children = ( 72 | 602C903D1B0DD615001EE880 /* SceneKit.framework */, 73 | 602C903B1B0DD610001EE880 /* SpriteKit.framework */, 74 | 602C90161B0DD5B5001EE880 /* CombinedSpriteKitSceneKit */, 75 | 602C902C1B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests */, 76 | 602C90151B0DD5B5001EE880 /* Products */, 77 | ); 78 | sourceTree = ""; 79 | }; 80 | 602C90151B0DD5B5001EE880 /* Products */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 602C90141B0DD5B5001EE880 /* CombinedSpriteKitSceneKit.app */, 84 | 602C90291B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.xctest */, 85 | ); 86 | name = Products; 87 | sourceTree = ""; 88 | }; 89 | 602C90161B0DD5B5001EE880 /* CombinedSpriteKitSceneKit */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 602C90191B0DD5B5001EE880 /* AppDelegate.swift */, 93 | 602C901B1B0DD5B5001EE880 /* ViewController.swift */, 94 | 602C90391B0DD5F3001EE880 /* MainScene.swift */, 95 | 602C903F1B0DD838001EE880 /* OverlayScene.swift */, 96 | 602C901D1B0DD5B5001EE880 /* Main.storyboard */, 97 | 602C90201B0DD5B5001EE880 /* Images.xcassets */, 98 | 602C90221B0DD5B5001EE880 /* LaunchScreen.xib */, 99 | 602C90171B0DD5B5001EE880 /* Supporting Files */, 100 | ); 101 | path = CombinedSpriteKitSceneKit; 102 | sourceTree = ""; 103 | }; 104 | 602C90171B0DD5B5001EE880 /* Supporting Files */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 602C90181B0DD5B5001EE880 /* Info.plist */, 108 | ); 109 | name = "Supporting Files"; 110 | sourceTree = ""; 111 | }; 112 | 602C902C1B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 602C902F1B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.swift */, 116 | 602C902D1B0DD5B5001EE880 /* Supporting Files */, 117 | ); 118 | path = CombinedSpriteKitSceneKitTests; 119 | sourceTree = ""; 120 | }; 121 | 602C902D1B0DD5B5001EE880 /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 602C902E1B0DD5B5001EE880 /* Info.plist */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 602C90131B0DD5B5001EE880 /* CombinedSpriteKitSceneKit */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 602C90331B0DD5B5001EE880 /* Build configuration list for PBXNativeTarget "CombinedSpriteKitSceneKit" */; 135 | buildPhases = ( 136 | 602C90101B0DD5B5001EE880 /* Sources */, 137 | 602C90111B0DD5B5001EE880 /* Frameworks */, 138 | 602C90121B0DD5B5001EE880 /* Resources */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = CombinedSpriteKitSceneKit; 145 | productName = CombinedSpriteKitSceneKit; 146 | productReference = 602C90141B0DD5B5001EE880 /* CombinedSpriteKitSceneKit.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | 602C90281B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = 602C90361B0DD5B5001EE880 /* Build configuration list for PBXNativeTarget "CombinedSpriteKitSceneKitTests" */; 152 | buildPhases = ( 153 | 602C90251B0DD5B5001EE880 /* Sources */, 154 | 602C90261B0DD5B5001EE880 /* Frameworks */, 155 | 602C90271B0DD5B5001EE880 /* Resources */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | 602C902B1B0DD5B5001EE880 /* PBXTargetDependency */, 161 | ); 162 | name = CombinedSpriteKitSceneKitTests; 163 | productName = CombinedSpriteKitSceneKitTests; 164 | productReference = 602C90291B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.xctest */; 165 | productType = "com.apple.product-type.bundle.unit-test"; 166 | }; 167 | /* End PBXNativeTarget section */ 168 | 169 | /* Begin PBXProject section */ 170 | 602C900C1B0DD5B5001EE880 /* Project object */ = { 171 | isa = PBXProject; 172 | attributes = { 173 | LastUpgradeCheck = 0630; 174 | ORGANIZATIONNAME = tutsplus; 175 | TargetAttributes = { 176 | 602C90131B0DD5B5001EE880 = { 177 | CreatedOnToolsVersion = 6.3.1; 178 | }; 179 | 602C90281B0DD5B5001EE880 = { 180 | CreatedOnToolsVersion = 6.3.1; 181 | TestTargetID = 602C90131B0DD5B5001EE880; 182 | }; 183 | }; 184 | }; 185 | buildConfigurationList = 602C900F1B0DD5B5001EE880 /* Build configuration list for PBXProject "CombinedSpriteKitSceneKit" */; 186 | compatibilityVersion = "Xcode 3.2"; 187 | developmentRegion = English; 188 | hasScannedForEncodings = 0; 189 | knownRegions = ( 190 | en, 191 | Base, 192 | ); 193 | mainGroup = 602C900B1B0DD5B5001EE880; 194 | productRefGroup = 602C90151B0DD5B5001EE880 /* Products */; 195 | projectDirPath = ""; 196 | projectRoot = ""; 197 | targets = ( 198 | 602C90131B0DD5B5001EE880 /* CombinedSpriteKitSceneKit */, 199 | 602C90281B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests */, 200 | ); 201 | }; 202 | /* End PBXProject section */ 203 | 204 | /* Begin PBXResourcesBuildPhase section */ 205 | 602C90121B0DD5B5001EE880 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | 602C901F1B0DD5B5001EE880 /* Main.storyboard in Resources */, 210 | 602C90241B0DD5B5001EE880 /* LaunchScreen.xib in Resources */, 211 | 602C90211B0DD5B5001EE880 /* Images.xcassets in Resources */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | 602C90271B0DD5B5001EE880 /* Resources */ = { 216 | isa = PBXResourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXSourcesBuildPhase section */ 225 | 602C90101B0DD5B5001EE880 /* Sources */ = { 226 | isa = PBXSourcesBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | 602C903A1B0DD5F3001EE880 /* MainScene.swift in Sources */, 230 | 602C901C1B0DD5B5001EE880 /* ViewController.swift in Sources */, 231 | 602C901A1B0DD5B5001EE880 /* AppDelegate.swift in Sources */, 232 | 602C90401B0DD838001EE880 /* OverlayScene.swift in Sources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 602C90251B0DD5B5001EE880 /* Sources */ = { 237 | isa = PBXSourcesBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 602C90301B0DD5B5001EE880 /* CombinedSpriteKitSceneKitTests.swift in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXTargetDependency section */ 247 | 602C902B1B0DD5B5001EE880 /* PBXTargetDependency */ = { 248 | isa = PBXTargetDependency; 249 | target = 602C90131B0DD5B5001EE880 /* CombinedSpriteKitSceneKit */; 250 | targetProxy = 602C902A1B0DD5B5001EE880 /* PBXContainerItemProxy */; 251 | }; 252 | /* End PBXTargetDependency section */ 253 | 254 | /* Begin PBXVariantGroup section */ 255 | 602C901D1B0DD5B5001EE880 /* Main.storyboard */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 602C901E1B0DD5B5001EE880 /* Base */, 259 | ); 260 | name = Main.storyboard; 261 | sourceTree = ""; 262 | }; 263 | 602C90221B0DD5B5001EE880 /* LaunchScreen.xib */ = { 264 | isa = PBXVariantGroup; 265 | children = ( 266 | 602C90231B0DD5B5001EE880 /* Base */, 267 | ); 268 | name = LaunchScreen.xib; 269 | sourceTree = ""; 270 | }; 271 | /* End PBXVariantGroup section */ 272 | 273 | /* Begin XCBuildConfiguration section */ 274 | 602C90311B0DD5B5001EE880 /* Debug */ = { 275 | isa = XCBuildConfiguration; 276 | buildSettings = { 277 | ALWAYS_SEARCH_USER_PATHS = NO; 278 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 279 | CLANG_CXX_LIBRARY = "libc++"; 280 | CLANG_ENABLE_MODULES = YES; 281 | CLANG_ENABLE_OBJC_ARC = YES; 282 | CLANG_WARN_BOOL_CONVERSION = YES; 283 | CLANG_WARN_CONSTANT_CONVERSION = YES; 284 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 285 | CLANG_WARN_EMPTY_BODY = YES; 286 | CLANG_WARN_ENUM_CONVERSION = YES; 287 | CLANG_WARN_INT_CONVERSION = YES; 288 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_STRICT_OBJC_MSGSEND = YES; 295 | GCC_C_LANGUAGE_STANDARD = gnu99; 296 | GCC_DYNAMIC_NO_PIC = NO; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_OPTIMIZATION_LEVEL = 0; 299 | GCC_PREPROCESSOR_DEFINITIONS = ( 300 | "DEBUG=1", 301 | "$(inherited)", 302 | ); 303 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 304 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 305 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 306 | GCC_WARN_UNDECLARED_SELECTOR = YES; 307 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 308 | GCC_WARN_UNUSED_FUNCTION = YES; 309 | GCC_WARN_UNUSED_VARIABLE = YES; 310 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 311 | MTL_ENABLE_DEBUG_INFO = YES; 312 | ONLY_ACTIVE_ARCH = YES; 313 | SDKROOT = iphoneos; 314 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 315 | }; 316 | name = Debug; 317 | }; 318 | 602C90321B0DD5B5001EE880 /* Release */ = { 319 | isa = XCBuildConfiguration; 320 | buildSettings = { 321 | ALWAYS_SEARCH_USER_PATHS = NO; 322 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 323 | CLANG_CXX_LIBRARY = "libc++"; 324 | CLANG_ENABLE_MODULES = YES; 325 | CLANG_ENABLE_OBJC_ARC = YES; 326 | CLANG_WARN_BOOL_CONVERSION = YES; 327 | CLANG_WARN_CONSTANT_CONVERSION = YES; 328 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 329 | CLANG_WARN_EMPTY_BODY = YES; 330 | CLANG_WARN_ENUM_CONVERSION = YES; 331 | CLANG_WARN_INT_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | GCC_C_LANGUAGE_STANDARD = gnu99; 341 | GCC_NO_COMMON_BLOCKS = YES; 342 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 343 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 344 | GCC_WARN_UNDECLARED_SELECTOR = YES; 345 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 346 | GCC_WARN_UNUSED_FUNCTION = YES; 347 | GCC_WARN_UNUSED_VARIABLE = YES; 348 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 349 | MTL_ENABLE_DEBUG_INFO = NO; 350 | SDKROOT = iphoneos; 351 | VALIDATE_PRODUCT = YES; 352 | }; 353 | name = Release; 354 | }; 355 | 602C90341B0DD5B5001EE880 /* Debug */ = { 356 | isa = XCBuildConfiguration; 357 | buildSettings = { 358 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 359 | INFOPLIST_FILE = CombinedSpriteKitSceneKit/Info.plist; 360 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 361 | PRODUCT_NAME = "$(TARGET_NAME)"; 362 | TARGETED_DEVICE_FAMILY = "1,2"; 363 | }; 364 | name = Debug; 365 | }; 366 | 602C90351B0DD5B5001EE880 /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 370 | INFOPLIST_FILE = CombinedSpriteKitSceneKit/Info.plist; 371 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | TARGETED_DEVICE_FAMILY = "1,2"; 374 | }; 375 | name = Release; 376 | }; 377 | 602C90371B0DD5B5001EE880 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | BUNDLE_LOADER = "$(TEST_HOST)"; 381 | FRAMEWORK_SEARCH_PATHS = ( 382 | "$(SDKROOT)/Developer/Library/Frameworks", 383 | "$(inherited)", 384 | ); 385 | GCC_PREPROCESSOR_DEFINITIONS = ( 386 | "DEBUG=1", 387 | "$(inherited)", 388 | ); 389 | INFOPLIST_FILE = CombinedSpriteKitSceneKitTests/Info.plist; 390 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CombinedSpriteKitSceneKit.app/CombinedSpriteKitSceneKit"; 393 | }; 394 | name = Debug; 395 | }; 396 | 602C90381B0DD5B5001EE880 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | FRAMEWORK_SEARCH_PATHS = ( 401 | "$(SDKROOT)/Developer/Library/Frameworks", 402 | "$(inherited)", 403 | ); 404 | INFOPLIST_FILE = CombinedSpriteKitSceneKitTests/Info.plist; 405 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 406 | PRODUCT_NAME = "$(TARGET_NAME)"; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CombinedSpriteKitSceneKit.app/CombinedSpriteKitSceneKit"; 408 | }; 409 | name = Release; 410 | }; 411 | /* End XCBuildConfiguration section */ 412 | 413 | /* Begin XCConfigurationList section */ 414 | 602C900F1B0DD5B5001EE880 /* Build configuration list for PBXProject "CombinedSpriteKitSceneKit" */ = { 415 | isa = XCConfigurationList; 416 | buildConfigurations = ( 417 | 602C90311B0DD5B5001EE880 /* Debug */, 418 | 602C90321B0DD5B5001EE880 /* Release */, 419 | ); 420 | defaultConfigurationIsVisible = 0; 421 | defaultConfigurationName = Release; 422 | }; 423 | 602C90331B0DD5B5001EE880 /* Build configuration list for PBXNativeTarget "CombinedSpriteKitSceneKit" */ = { 424 | isa = XCConfigurationList; 425 | buildConfigurations = ( 426 | 602C90341B0DD5B5001EE880 /* Debug */, 427 | 602C90351B0DD5B5001EE880 /* Release */, 428 | ); 429 | defaultConfigurationIsVisible = 0; 430 | defaultConfigurationName = Release; 431 | }; 432 | 602C90361B0DD5B5001EE880 /* Build configuration list for PBXNativeTarget "CombinedSpriteKitSceneKitTests" */ = { 433 | isa = XCConfigurationList; 434 | buildConfigurations = ( 435 | 602C90371B0DD5B5001EE880 /* Debug */, 436 | 602C90381B0DD5B5001EE880 /* Release */, 437 | ); 438 | defaultConfigurationIsVisible = 0; 439 | defaultConfigurationName = Release; 440 | }; 441 | /* End XCConfigurationList section */ 442 | }; 443 | rootObject = 602C900C1B0DD5B5001EE880 /* Project object */; 444 | } 445 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit.xcodeproj/xcuserdata/DavisAllie.xcuserdatad/xcschemes/CombinedSpriteKitSceneKit.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit.xcodeproj/xcuserdata/DavisAllie.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CombinedSpriteKitSceneKit.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 602C90131B0DD5B5001EE880 16 | 17 | primary 18 | 19 | 20 | 602C90281B0DD5B5001EE880 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CombinedSpriteKitSceneKit 4 | // 5 | // Created by Davis Allie on 21/05/2015. 6 | // Copyright (c) 2015 tutsplus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Images.xcassets/Pause Button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "Pause Button.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Images.xcassets/Pause Button.imageset/Pause Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/iOS-SpriteKitAndSceneKit-StarterProject/45d3dc7437fc7012cb82912376fae5b15853207f/CombinedSpriteKitSceneKit/Images.xcassets/Pause Button.imageset/Pause Button.png -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Images.xcassets/Play Button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "Play Button.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Images.xcassets/Play Button.imageset/Play Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/iOS-SpriteKitAndSceneKit-StarterProject/45d3dc7437fc7012cb82912376fae5b15853207f/CombinedSpriteKitSceneKit/Images.xcassets/Play Button.imageset/Play Button.png -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.tutsplus.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/MainScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MainScene.swift 3 | // CombinedSpriteKitSceneKit 4 | // 5 | // Created by Davis Allie on 21/05/2015. 6 | // Copyright (c) 2015 tutsplus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SceneKit 11 | import SpriteKit 12 | 13 | class MainScene: SCNScene { 14 | 15 | var cubeNode: SCNNode! 16 | var cameraNode: SCNNode! 17 | var lightNode: SCNNode! 18 | 19 | override init() { 20 | super.init() 21 | 22 | let cube = SCNBox(width: 3, height: 3, length: 3, chamferRadius: 0) 23 | let cubeMaterial = SCNMaterial() 24 | cubeMaterial.diffuse.contents = UIColor.blueColor() 25 | cube.materials = [cubeMaterial] 26 | self.cubeNode = SCNNode(geometry: cube) 27 | self.cubeNode.runAction(SCNAction.repeatActionForever(SCNAction.rotateByX(0, y: 0.01, z: 0, duration: 1.0/60.0))) 28 | 29 | let camera = SCNCamera() 30 | camera.xFov = 60 31 | camera.yFov = 60 32 | 33 | let ambientLight = SCNLight() 34 | ambientLight.type = SCNLightTypeAmbient 35 | ambientLight.color = UIColor(red: 0.2, green: 0.2, blue: 0.2, alpha: 1.0) 36 | 37 | let cameraConstraint = SCNLookAtConstraint(target: self.cubeNode) 38 | cameraConstraint.gimbalLockEnabled = true 39 | 40 | self.cameraNode = SCNNode() 41 | self.cameraNode.camera = camera 42 | self.cameraNode.constraints = [cameraConstraint] 43 | self.cameraNode.light = ambientLight 44 | self.cameraNode.position = SCNVector3(x: 5, y: 5, z: 5) 45 | 46 | let omniLight = SCNLight() 47 | omniLight.type = SCNLightTypeOmni 48 | 49 | self.lightNode = SCNNode() 50 | self.lightNode.light = omniLight 51 | self.lightNode.position = SCNVector3(x: -3, y: 5, z: 3) 52 | 53 | self.rootNode.addChildNode(self.cubeNode) 54 | self.rootNode.addChildNode(self.cameraNode) 55 | self.rootNode.addChildNode(self.lightNode) 56 | } 57 | 58 | required init(coder aDecoder: NSCoder) { 59 | super.init(coder: aDecoder) 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/OverlayScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PauseScene.swift 3 | // CombinedSpriteKitSceneKit 4 | // 5 | // Created by Davis Allie on 21/05/2015. 6 | // Copyright (c) 2015 tutsplus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | class OverlayScene: SKScene { 13 | 14 | var pauseNode: SKSpriteNode! 15 | var scoreNode: SKLabelNode! 16 | 17 | var score = 0 { 18 | didSet { 19 | self.scoreNode.text = "Score: \(self.score)" 20 | } 21 | } 22 | 23 | override init(size: CGSize) { 24 | super.init(size: size) 25 | 26 | self.backgroundColor = UIColor.clearColor() 27 | 28 | let spriteSize = size.width/12 29 | self.pauseNode = SKSpriteNode(imageNamed: "Pause Button") 30 | self.pauseNode.size = CGSize(width: spriteSize, height: spriteSize) 31 | self.pauseNode.position = CGPoint(x: spriteSize + 8, y: spriteSize + 8) 32 | 33 | self.scoreNode = SKLabelNode(text: "Score: 0") 34 | self.scoreNode.fontName = "DINAlternate-Bold" 35 | self.scoreNode.fontColor = UIColor.blackColor() 36 | self.scoreNode.fontSize = 24 37 | self.scoreNode.position = CGPoint(x: size.width/2, y: self.pauseNode.position.y - 9) 38 | 39 | self.addChild(self.pauseNode) 40 | self.addChild(self.scoreNode) 41 | } 42 | 43 | required init?(coder aDecoder: NSCoder) { 44 | super.init(coder: aDecoder) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKit/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CombinedSpriteKitSceneKit 4 | // 5 | // Created by Davis Allie on 21/05/2015. 6 | // Copyright (c) 2015 tutsplus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SceneKit 11 | 12 | class ViewController: UIViewController { 13 | 14 | var sceneView: SCNView! 15 | var spriteScene: OverlayScene! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | // Do any additional setup after loading the view, typically from a nib. 20 | 21 | self.sceneView = SCNView(frame: CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height)) 22 | self.sceneView.scene = MainScene() 23 | self.view.addSubview(self.sceneView) 24 | } 25 | 26 | override func didReceiveMemoryWarning() { 27 | super.didReceiveMemoryWarning() 28 | // Dispose of any resources that can be recreated. 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKitTests/CombinedSpriteKitSceneKitTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CombinedSpriteKitSceneKitTests.swift 3 | // CombinedSpriteKitSceneKitTests 4 | // 5 | // Created by Davis Allie on 21/05/2015. 6 | // Copyright (c) 2015 tutsplus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class CombinedSpriteKitSceneKitTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /CombinedSpriteKitSceneKitTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.tutsplus.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Tuts+ Tutorial: Combining the Power of SpriteKit and SceneKit 2 | 3 | #### Instructor: Davis Allie 4 | 5 | SpriteKit and SceneKit are iOS frameworks designed to make it easy for developers to create 2D and 3D assets in casual games. In this tutorial, I will show you how to combine content created in both frameworks into a single view to utilize the APIs that Apple has made available. 6 | 7 | Source files for the starter project of the Tuts+ tutorial: [Combining the Power of SpriteKit and SceneKit](http://code.tutsplus.com/tutorials/combining-the-power-of-spritekit-and-scenekit--cms-24049) 8 | 9 | **Read this tutorial on [Tuts+](https://code.tutsplus.com)** 10 | --------------------------------------------------------------------------------