├── README.md ├── Skiptaculous ├── GameScene.sks ├── Images.xcassets │ ├── bar.imageset │ │ ├── bar.png │ │ └── Contents.json │ ├── hero.imageset │ │ ├── hero.png │ │ └── Contents.json │ ├── play.imageset │ │ ├── play.png │ │ └── Contents.json │ ├── block1.imageset │ │ ├── block.png │ │ └── Contents.json │ ├── block2.imageset │ │ ├── block2.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── MyPlayground.playground │ ├── section-1.swift │ ├── contents.xcplayground │ └── timeline.xctimeline ├── UIColorExtension.swift ├── BlockStatus.swift ├── Info.plist ├── GameScene.swift ├── Base.lproj │ └── Main.storyboard ├── AppDelegate.swift ├── GameViewController.swift └── PlayScene.swift ├── Skiptaculous.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ ├── grominet.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── skipwilson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── Skiptaculous.xccheckout ├── xcuserdata │ ├── grominet.xcuserdatad │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── Skiptaculous.xcscheme │ └── skipwilson.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── Skiptaculous.xcscheme └── project.pbxproj └── SkiptaculousTests ├── Info.plist └── SkiptaculousTests.swift /README.md: -------------------------------------------------------------------------------- 1 | Skiptaculous 2 | ============ 3 | 4 | The git repo for the tutorial here http://youtu.be/eQ15rvwSFt8 5 | -------------------------------------------------------------------------------- /Skiptaculous/GameScene.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/GameScene.sks -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/bar.imageset/bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/Images.xcassets/bar.imageset/bar.png -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/hero.imageset/hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/Images.xcassets/hero.imageset/hero.png -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/play.imageset/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/Images.xcassets/play.imageset/play.png -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/block1.imageset/block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/Images.xcassets/block1.imageset/block.png -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/block2.imageset/block2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous/Images.xcassets/block2.imageset/block2.png -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/project.xcworkspace/xcuserdata/grominet.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous.xcodeproj/project.xcworkspace/xcuserdata/grominet.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/project.xcworkspace/xcuserdata/skipwilson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skipallmighty/Skiptaculous/HEAD/Skiptaculous.xcodeproj/project.xcworkspace/xcuserdata/skipwilson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Skiptaculous/MyPlayground.playground/section-1.swift: -------------------------------------------------------------------------------- 1 | 2 | // Playground - noun: a place where people can play 3 | 4 | import Cocoa 5 | 6 | var str = "Hello, playground" 7 | 8 | "h" 9 | var nums = [1,2,3,4,5,6] 10 | nums.map { 11 | (number:Int) -> Int in 12 | return number + 1 13 | } 14 | 15 | nums -------------------------------------------------------------------------------- /Skiptaculous/MyPlayground.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/bar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "bar.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/hero.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "hero.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/play.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "play.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/block1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "block.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/block2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "block2.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Skiptaculous/MyPlayground.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Skiptaculous/UIColorExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColorExtensions.swift 3 | // 4 | // Created by Taro Minowa on 6/8/14. 5 | // Copyright (c) 2014 Higepon Taro Minowa. All rights reserved. 6 | // 7 | 8 | import UIKit 9 | 10 | extension UIColor { 11 | convenience init(hex: Int, alpha: CGFloat = 1.0) { 12 | let red = CGFloat((hex & 0xFF0000) >> 16) / 255.0 13 | let green = CGFloat((hex & 0xFF00) >> 8) / 255.0 14 | let blue = CGFloat((hex & 0xFF)) / 255.0 15 | self.init(red:red, green:green, blue:blue, alpha:alpha) 16 | } 17 | } -------------------------------------------------------------------------------- /Skiptaculous/BlockStatus.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BlockStatus.swift 3 | // Skiptaculous 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class BlockStatus { 12 | var isRunning = false 13 | var timeGapForNextRun = UInt32(0) 14 | var currentInterval = UInt32(0) 15 | init(isRunning:Bool, timeGapForNextRun:UInt32, currentInterval:UInt32) { 16 | self.isRunning = isRunning 17 | self.timeGapForNextRun = timeGapForNextRun 18 | self.currentInterval = currentInterval 19 | } 20 | 21 | func shouldRunBlock() -> Bool { 22 | return self.currentInterval > self.timeGapForNextRun 23 | } 24 | } -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/xcuserdata/grominet.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Skiptaculous.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 781B157D1954823C0003CA5A 16 | 17 | primary 18 | 19 | 20 | 781B15931954823C0003CA5A 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/xcuserdata/skipwilson.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Skiptaculous.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 781B157D1954823C0003CA5A 16 | 17 | primary 18 | 19 | 20 | 781B15931954823C0003CA5A 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SkiptaculousTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.swiftallmighty.${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 | -------------------------------------------------------------------------------- /SkiptaculousTests/SkiptaculousTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SkiptaculousTests.swift 3 | // SkiptaculousTests 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class SkiptaculousTests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | super.tearDown() 21 | } 22 | 23 | func testExample() { 24 | // This is an example of a functional test case. 25 | XCTAssert(true, "Pass") 26 | } 27 | 28 | func testPerformanceExample() { 29 | // This is an example of a performance test case. 30 | self.measureBlock() { 31 | // Put the code you want to measure the time of here. 32 | } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Skiptaculous/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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "60x60", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "29x29", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "40x40", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "76x76", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /Skiptaculous/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.swiftallmighty.${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 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIStatusBarHidden 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Skiptaculous/GameScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GameScene.swift 3 | // Skiptaculous 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. All rights reserved. 7 | // 8 | 9 | import SpriteKit 10 | 11 | class GameScene: SKScene { 12 | 13 | let playButton = SKSpriteNode(imageNamed:"play") 14 | 15 | override func didMoveToView(view: SKView) { 16 | self.playButton.position = CGPointMake(CGRectGetMidX(self.frame), CGRectGetMidY(self.frame)) 17 | self.addChild(self.playButton) 18 | self.backgroundColor = UIColor(hex: 0x80D9FF) 19 | } 20 | 21 | override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { 22 | for touch: AnyObject in touches { 23 | let location = touch.locationInNode(self) 24 | if self.nodeAtPoint(location) == self.playButton { 25 | var scene = PlayScene(size: self.size) 26 | let skView = self.view as SKView! 27 | skView.ignoresSiblingOrder = true 28 | scene.scaleMode = .ResizeFill 29 | scene.size = skView.bounds.size 30 | skView.presentScene(scene) 31 | } 32 | } 33 | } 34 | 35 | override func update(currentTime: CFTimeInterval) { 36 | /* Called before each frame is rendered */ 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Skiptaculous/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/project.xcworkspace/xcshareddata/Skiptaculous.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 0798D68D-0927-4392-A356-181D665ED6B8 9 | IDESourceControlProjectName 10 | Skiptaculous 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 64BCE0A7F34C07F0269C56815B1F2EC81998BEAC 14 | https://github.com/Grominet/Skiptaculous.git 15 | 16 | IDESourceControlProjectPath 17 | Skiptaculous.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 64BCE0A7F34C07F0269C56815B1F2EC81998BEAC 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/Grominet/Skiptaculous.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 64BCE0A7F34C07F0269C56815B1F2EC81998BEAC 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 64BCE0A7F34C07F0269C56815B1F2EC81998BEAC 36 | IDESourceControlWCCName 37 | Skiptaculous 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Skiptaculous/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 | 27 | -------------------------------------------------------------------------------- /Skiptaculous/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Skiptaculous 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. 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: NSDictionary?) -> 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 | -------------------------------------------------------------------------------- /Skiptaculous/GameViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GameViewController.swift 3 | // Skiptaculous 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | extension SKNode { 13 | class func unarchiveFromFile(file : NSString) -> SKNode? { 14 | if let path = NSBundle.mainBundle().pathForResource(file, ofType: "sks") { 15 | var sceneData = NSData(contentsOfFile: path, options: .DataReadingMappedIfSafe, error: nil)! 16 | var archiver = NSKeyedUnarchiver(forReadingWithData: sceneData) 17 | 18 | archiver.setClass(self.classForKeyedUnarchiver(), forClassName: "SKScene") 19 | let scene = archiver.decodeObjectForKey(NSKeyedArchiveRootObjectKey) as GameScene 20 | archiver.finishDecoding() 21 | return scene 22 | } else { 23 | return nil 24 | } 25 | } 26 | } 27 | 28 | class GameViewController: UIViewController { 29 | 30 | override func viewDidLoad() { 31 | super.viewDidLoad() 32 | 33 | if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { 34 | // Configure the view. 35 | let skView = self.view as SKView 36 | skView.showsFPS = false 37 | scene.size = skView.bounds.size 38 | skView.showsNodeCount = false 39 | 40 | /* Sprite Kit applies additional optimizations to improve rendering performance */ 41 | skView.ignoresSiblingOrder = true 42 | 43 | /* Set the scale mode to scale to fit the window */ 44 | scene.scaleMode = .AspectFill 45 | 46 | skView.presentScene(scene) 47 | } 48 | } 49 | 50 | override func shouldAutorotate() -> Bool { 51 | return true 52 | } 53 | 54 | override func supportedInterfaceOrientations() -> Int { 55 | if UIDevice.currentDevice().userInterfaceIdiom == .Phone { 56 | return Int(UIInterfaceOrientationMask.AllButUpsideDown.rawValue) 57 | } else { 58 | return Int(UIInterfaceOrientationMask.All.rawValue) 59 | } 60 | } 61 | 62 | override func didReceiveMemoryWarning() { 63 | super.didReceiveMemoryWarning() 64 | // Release any cached data, images, etc that aren't in use. 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/xcuserdata/skipwilson.xcuserdatad/xcschemes/Skiptaculous.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/xcuserdata/grominet.xcuserdatad/xcschemes/Skiptaculous.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 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 94 | 100 | 101 | 102 | 103 | 105 | 106 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /Skiptaculous/PlayScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PlayScene.swift 3 | // Skiptaculous 4 | // 5 | // Created by Skip Wilson on 6/20/14. 6 | // Copyright (c) 2014 Skip Wilson. All rights reserved. 7 | // 8 | 9 | import SpriteKit 10 | 11 | class PlayScene: SKScene, SKPhysicsContactDelegate { 12 | 13 | let runningBar = SKSpriteNode(imageNamed:"bar") 14 | let hero = SKSpriteNode(imageNamed:"hero") 15 | let block1 = SKSpriteNode(imageNamed:"block1") 16 | let block2 = SKSpriteNode(imageNamed:"block2") 17 | let scoreText = SKLabelNode(fontNamed: "Chalkduster") 18 | 19 | var origRunningBarPositionX = CGFloat(0) 20 | var maxBarX = CGFloat(0) 21 | var groundSpeed = 5 22 | var heroBaseline = CGFloat(0) 23 | var onGround = true 24 | var velocityY = CGFloat(0) 25 | let gravity = CGFloat(0.6) 26 | 27 | var blockMaxX = CGFloat(0) 28 | var origBlockPositionX = CGFloat(0) 29 | var score = 0 30 | 31 | enum ColliderType:UInt32 { 32 | case Hero = 1 33 | case Block = 2 34 | } 35 | 36 | override func didMoveToView(view: SKView) { 37 | self.backgroundColor = UIColor(hex: 0x80D9FF) 38 | 39 | self.physicsWorld.contactDelegate = self 40 | 41 | self.runningBar.anchorPoint = CGPointMake(0, 0.5) 42 | self.runningBar.position = CGPointMake( 43 | CGRectGetMinX(self.frame), 44 | CGRectGetMinY(self.frame) + (self.runningBar.size.height / 2)) 45 | self.origRunningBarPositionX = self.runningBar.position.x 46 | self.maxBarX = self.runningBar.size.width - self.frame.size.width 47 | self.maxBarX *= -1 48 | 49 | self.heroBaseline = self.runningBar.position.y + (self.runningBar.size.height / 2) + (self.hero.size.height / 2) 50 | self.hero.position = CGPointMake(CGRectGetMinX(self.frame) + self.hero.size.width + (self.hero.size.width / 4), self.heroBaseline) 51 | self.hero.physicsBody = SKPhysicsBody(circleOfRadius: CGFloat(self.hero.size.width / 2)) 52 | self.hero.physicsBody?.affectedByGravity = false 53 | self.hero.physicsBody?.categoryBitMask = ColliderType.Hero.rawValue 54 | self.hero.physicsBody?.contactTestBitMask = ColliderType.Block.rawValue 55 | self.hero.physicsBody?.collisionBitMask = ColliderType.Block.rawValue 56 | 57 | self.block1.position = CGPointMake(CGRectGetMaxX(self.frame) + self.block1.size.width, self.heroBaseline) 58 | self.block2.position = CGPointMake(CGRectGetMaxX(self.frame) + self.block2.size.width, self.heroBaseline + (self.block1.size.height / 2)) 59 | self.block1.physicsBody = SKPhysicsBody(rectangleOfSize: self.block1.size) 60 | self.block1.physicsBody?.dynamic = false 61 | self.block1.physicsBody?.categoryBitMask = ColliderType.Block.rawValue 62 | self.block1.physicsBody?.contactTestBitMask = ColliderType.Hero.rawValue 63 | self.block1.physicsBody?.collisionBitMask = ColliderType.Hero.rawValue 64 | 65 | self.block2.physicsBody = SKPhysicsBody(rectangleOfSize: self.block1.size) 66 | self.block2.physicsBody?.dynamic = false 67 | self.block2.physicsBody?.categoryBitMask = ColliderType.Block.rawValue 68 | self.block2.physicsBody?.contactTestBitMask = ColliderType.Hero.rawValue 69 | self.block2.physicsBody?.collisionBitMask = ColliderType.Hero.rawValue 70 | 71 | self.origBlockPositionX = self.block1.position.x 72 | 73 | self.block1.name = "block1" 74 | self.block2.name = "block2" 75 | 76 | blockStatuses["block1"] = BlockStatus(isRunning: false, timeGapForNextRun: random(), currentInterval: UInt32(0)) 77 | blockStatuses["block2"] = BlockStatus(isRunning: false, timeGapForNextRun: random(), currentInterval: UInt32(0)) 78 | 79 | self.scoreText.text = "0" 80 | self.scoreText.fontSize = 42 81 | self.scoreText.position = CGPointMake(CGRectGetMidX(self.frame), CGRectGetMidY(self.frame)) 82 | 83 | self.blockMaxX = 0 - self.block1.size.width / 2 84 | 85 | self.addChild(self.runningBar) 86 | self.addChild(self.hero) 87 | self.addChild(self.block1) 88 | self.addChild(self.block2) 89 | self.addChild(self.scoreText) 90 | 91 | } 92 | 93 | func didBeginContact(contact:SKPhysicsContact) { 94 | died() 95 | } 96 | 97 | func died() { 98 | if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { 99 | let skView = self.view as SKView! 100 | skView.ignoresSiblingOrder = true 101 | scene.size = skView.bounds.size 102 | scene.scaleMode = .AspectFill 103 | skView.presentScene(scene) 104 | } 105 | } 106 | 107 | func random() -> UInt32 { 108 | var range = UInt32(50).. = [:] 113 | 114 | override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { 115 | if self.onGround { 116 | self.velocityY = -18.0 117 | self.onGround = false 118 | } 119 | } 120 | 121 | override func touchesEnded(touches: NSSet, withEvent event: UIEvent) { 122 | if self.velocityY < -9.0 { 123 | self.velocityY = -9.0 124 | } 125 | } 126 | 127 | override func update(currentTime: NSTimeInterval) { 128 | if self.runningBar.position.x <= maxBarX { 129 | self.runningBar.position.x = self.origRunningBarPositionX 130 | } 131 | 132 | //jump 133 | self.velocityY += self.gravity 134 | self.hero.position.y -= velocityY 135 | 136 | if self.hero.position.y < self.heroBaseline { 137 | self.hero.position.y = self.heroBaseline 138 | velocityY = 0.0 139 | self.onGround = true 140 | } 141 | 142 | //rotate the hero 143 | var degreeRotation = CDouble(self.groundSpeed) * M_PI / 180 144 | //rotate the hero 145 | self.hero.zRotation -= CGFloat(degreeRotation) 146 | 147 | //move the ground 148 | runningBar.position.x -= CGFloat(self.groundSpeed) 149 | 150 | blockRunner() 151 | } 152 | 153 | func blockRunner() { 154 | for(block, blockStatus) in self.blockStatuses { 155 | var thisBlock = self.childNodeWithName(block)! 156 | if blockStatus.shouldRunBlock() { 157 | blockStatus.timeGapForNextRun = random() 158 | blockStatus.currentInterval = 0 159 | blockStatus.isRunning = true 160 | } 161 | 162 | if blockStatus.isRunning { 163 | if thisBlock.position.x > blockMaxX { 164 | thisBlock.position.x -= CGFloat(self.groundSpeed) 165 | }else { 166 | thisBlock.position.x = self.origBlockPositionX 167 | blockStatus.isRunning = false 168 | self.score++ 169 | if ((self.score % 5) == 0) { 170 | self.groundSpeed++ 171 | } 172 | self.scoreText.text = String(self.score) 173 | } 174 | }else { 175 | blockStatus.currentInterval++ 176 | } 177 | } 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /Skiptaculous.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 781B15841954823C0003CA5A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 781B15831954823C0003CA5A /* AppDelegate.swift */; }; 11 | 781B15861954823C0003CA5A /* GameScene.sks in Resources */ = {isa = PBXBuildFile; fileRef = 781B15851954823C0003CA5A /* GameScene.sks */; }; 12 | 781B15881954823C0003CA5A /* GameScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 781B15871954823C0003CA5A /* GameScene.swift */; }; 13 | 781B158A1954823C0003CA5A /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 781B15891954823C0003CA5A /* GameViewController.swift */; }; 14 | 781B158D1954823C0003CA5A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 781B158B1954823C0003CA5A /* Main.storyboard */; }; 15 | 781B158F1954823C0003CA5A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 781B158E1954823C0003CA5A /* Images.xcassets */; }; 16 | 781B159B1954823D0003CA5A /* SkiptaculousTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 781B159A1954823D0003CA5A /* SkiptaculousTests.swift */; }; 17 | 78BB6AF819548B030016686C /* UIColorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78BB6AF719548B030016686C /* UIColorExtension.swift */; }; 18 | 78BB6AFA19548C280016686C /* PlayScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78BB6AF919548C280016686C /* PlayScene.swift */; }; 19 | 78D9A4D219549BC200DD9659 /* BlockStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78D9A4D119549BC200DD9659 /* BlockStatus.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 781B15951954823D0003CA5A /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 781B15761954823C0003CA5A /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 781B157D1954823C0003CA5A; 28 | remoteInfo = Skiptaculous; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 781B157E1954823C0003CA5A /* Skiptaculous.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Skiptaculous.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 781B15821954823C0003CA5A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 781B15831954823C0003CA5A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 781B15851954823C0003CA5A /* GameScene.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = GameScene.sks; sourceTree = ""; }; 37 | 781B15871954823C0003CA5A /* GameScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameScene.swift; sourceTree = ""; }; 38 | 781B15891954823C0003CA5A /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = ""; }; 39 | 781B158C1954823C0003CA5A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 781B158E1954823C0003CA5A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 781B15941954823C0003CA5A /* SkiptaculousTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SkiptaculousTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 781B15991954823D0003CA5A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 781B159A1954823D0003CA5A /* SkiptaculousTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SkiptaculousTests.swift; sourceTree = ""; }; 44 | 78BB6AF719548B030016686C /* UIColorExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIColorExtension.swift; sourceTree = ""; }; 45 | 78BB6AF919548C280016686C /* PlayScene.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayScene.swift; sourceTree = ""; }; 46 | 78D9A4D119549BC200DD9659 /* BlockStatus.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BlockStatus.swift; sourceTree = ""; }; 47 | 78E5BEE71958530000010FC5 /* MyPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = MyPlayground.playground; sourceTree = ""; }; 48 | /* End PBXFileReference section */ 49 | 50 | /* Begin PBXFrameworksBuildPhase section */ 51 | 781B157B1954823C0003CA5A /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 781B15911954823C0003CA5A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 781B15751954823C0003CA5A = { 69 | isa = PBXGroup; 70 | children = ( 71 | 781B15801954823C0003CA5A /* Skiptaculous */, 72 | 781B15971954823D0003CA5A /* SkiptaculousTests */, 73 | 781B157F1954823C0003CA5A /* Products */, 74 | ); 75 | sourceTree = ""; 76 | }; 77 | 781B157F1954823C0003CA5A /* Products */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 781B157E1954823C0003CA5A /* Skiptaculous.app */, 81 | 781B15941954823C0003CA5A /* SkiptaculousTests.xctest */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 781B15801954823C0003CA5A /* Skiptaculous */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 781B15831954823C0003CA5A /* AppDelegate.swift */, 90 | 78E5BEE71958530000010FC5 /* MyPlayground.playground */, 91 | 781B15851954823C0003CA5A /* GameScene.sks */, 92 | 781B15871954823C0003CA5A /* GameScene.swift */, 93 | 781B15891954823C0003CA5A /* GameViewController.swift */, 94 | 781B158B1954823C0003CA5A /* Main.storyboard */, 95 | 781B158E1954823C0003CA5A /* Images.xcassets */, 96 | 781B15811954823C0003CA5A /* Supporting Files */, 97 | 78BB6AF719548B030016686C /* UIColorExtension.swift */, 98 | 78BB6AF919548C280016686C /* PlayScene.swift */, 99 | 78D9A4D119549BC200DD9659 /* BlockStatus.swift */, 100 | ); 101 | path = Skiptaculous; 102 | sourceTree = ""; 103 | }; 104 | 781B15811954823C0003CA5A /* Supporting Files */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 781B15821954823C0003CA5A /* Info.plist */, 108 | ); 109 | name = "Supporting Files"; 110 | sourceTree = ""; 111 | }; 112 | 781B15971954823D0003CA5A /* SkiptaculousTests */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 781B159A1954823D0003CA5A /* SkiptaculousTests.swift */, 116 | 781B15981954823D0003CA5A /* Supporting Files */, 117 | ); 118 | path = SkiptaculousTests; 119 | sourceTree = ""; 120 | }; 121 | 781B15981954823D0003CA5A /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 781B15991954823D0003CA5A /* Info.plist */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 781B157D1954823C0003CA5A /* Skiptaculous */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 781B159E1954823D0003CA5A /* Build configuration list for PBXNativeTarget "Skiptaculous" */; 135 | buildPhases = ( 136 | 781B157A1954823C0003CA5A /* Sources */, 137 | 781B157B1954823C0003CA5A /* Frameworks */, 138 | 781B157C1954823C0003CA5A /* Resources */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Skiptaculous; 145 | productName = Skiptaculous; 146 | productReference = 781B157E1954823C0003CA5A /* Skiptaculous.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | 781B15931954823C0003CA5A /* SkiptaculousTests */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = 781B15A11954823D0003CA5A /* Build configuration list for PBXNativeTarget "SkiptaculousTests" */; 152 | buildPhases = ( 153 | 781B15901954823C0003CA5A /* Sources */, 154 | 781B15911954823C0003CA5A /* Frameworks */, 155 | 781B15921954823C0003CA5A /* Resources */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | 781B15961954823D0003CA5A /* PBXTargetDependency */, 161 | ); 162 | name = SkiptaculousTests; 163 | productName = SkiptaculousTests; 164 | productReference = 781B15941954823C0003CA5A /* SkiptaculousTests.xctest */; 165 | productType = "com.apple.product-type.bundle.unit-test"; 166 | }; 167 | /* End PBXNativeTarget section */ 168 | 169 | /* Begin PBXProject section */ 170 | 781B15761954823C0003CA5A /* Project object */ = { 171 | isa = PBXProject; 172 | attributes = { 173 | LastUpgradeCheck = 0600; 174 | ORGANIZATIONNAME = "Skip Wilson"; 175 | TargetAttributes = { 176 | 781B157D1954823C0003CA5A = { 177 | CreatedOnToolsVersion = 6.0; 178 | }; 179 | 781B15931954823C0003CA5A = { 180 | CreatedOnToolsVersion = 6.0; 181 | TestTargetID = 781B157D1954823C0003CA5A; 182 | }; 183 | }; 184 | }; 185 | buildConfigurationList = 781B15791954823C0003CA5A /* Build configuration list for PBXProject "Skiptaculous" */; 186 | compatibilityVersion = "Xcode 3.2"; 187 | developmentRegion = English; 188 | hasScannedForEncodings = 0; 189 | knownRegions = ( 190 | en, 191 | Base, 192 | ); 193 | mainGroup = 781B15751954823C0003CA5A; 194 | productRefGroup = 781B157F1954823C0003CA5A /* Products */; 195 | projectDirPath = ""; 196 | projectRoot = ""; 197 | targets = ( 198 | 781B157D1954823C0003CA5A /* Skiptaculous */, 199 | 781B15931954823C0003CA5A /* SkiptaculousTests */, 200 | ); 201 | }; 202 | /* End PBXProject section */ 203 | 204 | /* Begin PBXResourcesBuildPhase section */ 205 | 781B157C1954823C0003CA5A /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | 781B158F1954823C0003CA5A /* Images.xcassets in Resources */, 210 | 781B15861954823C0003CA5A /* GameScene.sks in Resources */, 211 | 781B158D1954823C0003CA5A /* Main.storyboard in Resources */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | 781B15921954823C0003CA5A /* Resources */ = { 216 | isa = PBXResourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXSourcesBuildPhase section */ 225 | 781B157A1954823C0003CA5A /* Sources */ = { 226 | isa = PBXSourcesBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | 781B15881954823C0003CA5A /* GameScene.swift in Sources */, 230 | 78D9A4D219549BC200DD9659 /* BlockStatus.swift in Sources */, 231 | 78BB6AFA19548C280016686C /* PlayScene.swift in Sources */, 232 | 781B158A1954823C0003CA5A /* GameViewController.swift in Sources */, 233 | 781B15841954823C0003CA5A /* AppDelegate.swift in Sources */, 234 | 78BB6AF819548B030016686C /* UIColorExtension.swift in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | 781B15901954823C0003CA5A /* Sources */ = { 239 | isa = PBXSourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 781B159B1954823D0003CA5A /* SkiptaculousTests.swift in Sources */, 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | /* End PBXSourcesBuildPhase section */ 247 | 248 | /* Begin PBXTargetDependency section */ 249 | 781B15961954823D0003CA5A /* PBXTargetDependency */ = { 250 | isa = PBXTargetDependency; 251 | target = 781B157D1954823C0003CA5A /* Skiptaculous */; 252 | targetProxy = 781B15951954823D0003CA5A /* PBXContainerItemProxy */; 253 | }; 254 | /* End PBXTargetDependency section */ 255 | 256 | /* Begin PBXVariantGroup section */ 257 | 781B158B1954823C0003CA5A /* Main.storyboard */ = { 258 | isa = PBXVariantGroup; 259 | children = ( 260 | 781B158C1954823C0003CA5A /* Base */, 261 | ); 262 | name = Main.storyboard; 263 | sourceTree = ""; 264 | }; 265 | /* End PBXVariantGroup section */ 266 | 267 | /* Begin XCBuildConfiguration section */ 268 | 781B159C1954823D0003CA5A /* Debug */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ALWAYS_SEARCH_USER_PATHS = NO; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BOOL_CONVERSION = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN_UNREACHABLE_CODE = YES; 284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 286 | COPY_PHASE_STRIP = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_DYNAMIC_NO_PIC = NO; 290 | GCC_OPTIMIZATION_LEVEL = 0; 291 | GCC_PREPROCESSOR_DEFINITIONS = ( 292 | "DEBUG=1", 293 | "$(inherited)", 294 | ); 295 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 298 | GCC_WARN_UNDECLARED_SELECTOR = YES; 299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 300 | GCC_WARN_UNUSED_FUNCTION = YES; 301 | GCC_WARN_UNUSED_VARIABLE = YES; 302 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 303 | METAL_ENABLE_DEBUG_INFO = YES; 304 | ONLY_ACTIVE_ARCH = YES; 305 | SDKROOT = iphoneos; 306 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | }; 309 | name = Debug; 310 | }; 311 | 781B159D1954823D0003CA5A /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ALWAYS_SEARCH_USER_PATHS = NO; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BOOL_CONVERSION = YES; 320 | CLANG_WARN_CONSTANT_CONVERSION = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 326 | CLANG_WARN_UNREACHABLE_CODE = YES; 327 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 328 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 329 | COPY_PHASE_STRIP = YES; 330 | ENABLE_NS_ASSERTIONS = NO; 331 | ENABLE_STRICT_OBJC_MSGSEND = YES; 332 | GCC_C_LANGUAGE_STANDARD = gnu99; 333 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 334 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 335 | GCC_WARN_UNDECLARED_SELECTOR = YES; 336 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 337 | GCC_WARN_UNUSED_FUNCTION = YES; 338 | GCC_WARN_UNUSED_VARIABLE = YES; 339 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 340 | METAL_ENABLE_DEBUG_INFO = NO; 341 | SDKROOT = iphoneos; 342 | TARGETED_DEVICE_FAMILY = "1,2"; 343 | VALIDATE_PRODUCT = YES; 344 | }; 345 | name = Release; 346 | }; 347 | 781B159F1954823D0003CA5A /* Debug */ = { 348 | isa = XCBuildConfiguration; 349 | buildSettings = { 350 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 351 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 352 | INFOPLIST_FILE = Skiptaculous/Info.plist; 353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 354 | PRODUCT_NAME = "$(TARGET_NAME)"; 355 | }; 356 | name = Debug; 357 | }; 358 | 781B15A01954823D0003CA5A /* Release */ = { 359 | isa = XCBuildConfiguration; 360 | buildSettings = { 361 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 362 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 363 | INFOPLIST_FILE = Skiptaculous/Info.plist; 364 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | }; 367 | name = Release; 368 | }; 369 | 781B15A21954823D0003CA5A /* Debug */ = { 370 | isa = XCBuildConfiguration; 371 | buildSettings = { 372 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Skiptaculous.app/Skiptaculous"; 373 | FRAMEWORK_SEARCH_PATHS = ( 374 | "$(SDKROOT)/Developer/Library/Frameworks", 375 | "$(inherited)", 376 | ); 377 | GCC_PREPROCESSOR_DEFINITIONS = ( 378 | "DEBUG=1", 379 | "$(inherited)", 380 | ); 381 | INFOPLIST_FILE = SkiptaculousTests/Info.plist; 382 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 383 | METAL_ENABLE_DEBUG_INFO = YES; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | TEST_HOST = "$(BUNDLE_LOADER)"; 386 | }; 387 | name = Debug; 388 | }; 389 | 781B15A31954823D0003CA5A /* Release */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Skiptaculous.app/Skiptaculous"; 393 | FRAMEWORK_SEARCH_PATHS = ( 394 | "$(SDKROOT)/Developer/Library/Frameworks", 395 | "$(inherited)", 396 | ); 397 | INFOPLIST_FILE = SkiptaculousTests/Info.plist; 398 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 399 | METAL_ENABLE_DEBUG_INFO = NO; 400 | PRODUCT_NAME = "$(TARGET_NAME)"; 401 | TEST_HOST = "$(BUNDLE_LOADER)"; 402 | }; 403 | name = Release; 404 | }; 405 | /* End XCBuildConfiguration section */ 406 | 407 | /* Begin XCConfigurationList section */ 408 | 781B15791954823C0003CA5A /* Build configuration list for PBXProject "Skiptaculous" */ = { 409 | isa = XCConfigurationList; 410 | buildConfigurations = ( 411 | 781B159C1954823D0003CA5A /* Debug */, 412 | 781B159D1954823D0003CA5A /* Release */, 413 | ); 414 | defaultConfigurationIsVisible = 0; 415 | defaultConfigurationName = Release; 416 | }; 417 | 781B159E1954823D0003CA5A /* Build configuration list for PBXNativeTarget "Skiptaculous" */ = { 418 | isa = XCConfigurationList; 419 | buildConfigurations = ( 420 | 781B159F1954823D0003CA5A /* Debug */, 421 | 781B15A01954823D0003CA5A /* Release */, 422 | ); 423 | defaultConfigurationIsVisible = 0; 424 | defaultConfigurationName = Release; 425 | }; 426 | 781B15A11954823D0003CA5A /* Build configuration list for PBXNativeTarget "SkiptaculousTests" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | 781B15A21954823D0003CA5A /* Debug */, 430 | 781B15A31954823D0003CA5A /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | defaultConfigurationName = Release; 434 | }; 435 | /* End XCConfigurationList section */ 436 | }; 437 | rootObject = 781B15761954823C0003CA5A /* Project object */; 438 | } 439 | --------------------------------------------------------------------------------