diff --git a/Contained/Contained.xcodeproj/project.pbxproj b/Contained/Contained.xcodeproj/project.pbxproj new file mode 100644 index 00000000..feb2743a --- /dev/null +++ b/Contained/Contained.xcodeproj/project.pbxproj @@ -0,0 +1,379 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 4A7A5B2B24888435007F37CB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B2A24888435007F37CB /* AppDelegate.swift */; }; + 4A7A5B2D24888435007F37CB /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B2C24888435007F37CB /* SceneDelegate.swift */; }; + 4A7A5B3224888435007F37CB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4A7A5B3024888435007F37CB /* Main.storyboard */; }; + 4A7A5B3424888468007F37CB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4A7A5B3324888468007F37CB /* Assets.xcassets */; }; + 4A7A5B3724888468007F37CB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4A7A5B3524888468007F37CB /* LaunchScreen.storyboard */; }; + 4A7A5B3F2488858D007F37CB /* Crab.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4A7A5B3E2488858D007F37CB /* Crab.xcassets */; }; + 4A7A5B41248885A9007F37CB /* SKSpriteNode+Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B40248885A8007F37CB /* SKSpriteNode+Utility.swift */; }; + 4A7A5B45248886B3007F37CB /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B44248886B3007F37CB /* Settings.swift */; }; + 4A7A5B48248893BC007F37CB /* Infoo.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4A7A5B46248893BC007F37CB /* Infoo.storyboard */; }; + 4A7A5B4A248896DF007F37CB /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B49248896DF007F37CB /* GameViewController.swift */; }; + 4A7A5B4C248896EC007F37CB /* InfoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B4B248896EC007F37CB /* InfoViewController.swift */; }; + 4A7A5B4E248896F7007F37CB /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B4D248896F7007F37CB /* SettingsViewController.swift */; }; + 4A7A5B532488D7F0007F37CB /* CustomScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A7A5B512488CA63007F37CB /* CustomScene.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4A7A5B2724888435007F37CB /* Contained.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Contained.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4A7A5B2A24888435007F37CB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 4A7A5B2C24888435007F37CB /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 4A7A5B3124888435007F37CB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 4A7A5B3324888468007F37CB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4A7A5B3624888468007F37CB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 4A7A5B3824888468007F37CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4A7A5B3E2488858D007F37CB /* Crab.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Crab.xcassets; path = ../Crab.xcassets; sourceTree = ""; }; + 4A7A5B40248885A8007F37CB /* SKSpriteNode+Utility.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SKSpriteNode+Utility.swift"; path = "../../SKSpriteNode+Utility.swift"; sourceTree = ""; }; + 4A7A5B44248886B3007F37CB /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = ""; }; + 4A7A5B47248893BC007F37CB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Contained/Base.lproj/Infoo.storyboard; sourceTree = ""; }; + 4A7A5B49248896DF007F37CB /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = ""; }; + 4A7A5B4B248896EC007F37CB /* InfoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InfoViewController.swift; sourceTree = ""; }; + 4A7A5B4D248896F7007F37CB /* SettingsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsViewController.swift; sourceTree = ""; }; + 4A7A5B512488CA63007F37CB /* CustomScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomScene.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4A7A5B2424888434007F37CB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4A7A5B1E24888434007F37CB = { + isa = PBXGroup; + children = ( + 4A7A5B2924888435007F37CB /* Contained */, + 4A7A5B2824888435007F37CB /* Products */, + 4A7A5B3E2488858D007F37CB /* Crab.xcassets */, + ); + sourceTree = ""; + }; + 4A7A5B2824888435007F37CB /* Products */ = { + isa = PBXGroup; + children = ( + 4A7A5B2724888435007F37CB /* Contained.app */, + ); + name = Products; + sourceTree = ""; + }; + 4A7A5B2924888435007F37CB /* Contained */ = { + isa = PBXGroup; + children = ( + 4A7A5B512488CA63007F37CB /* CustomScene.swift */, + 4A7A5B46248893BC007F37CB /* Infoo.storyboard */, + 4A7A5B2A24888435007F37CB /* AppDelegate.swift */, + 4A7A5B2C24888435007F37CB /* SceneDelegate.swift */, + 4A7A5B3024888435007F37CB /* Main.storyboard */, + 4A7A5B49248896DF007F37CB /* GameViewController.swift */, + 4A7A5B4B248896EC007F37CB /* InfoViewController.swift */, + 4A7A5B4D248896F7007F37CB /* SettingsViewController.swift */, + 4A7A5B44248886B3007F37CB /* Settings.swift */, + 4A7A5B3324888468007F37CB /* Assets.xcassets */, + 4A7A5B3524888468007F37CB /* LaunchScreen.storyboard */, + 4A7A5B3824888468007F37CB /* Info.plist */, + 4A7A5B40248885A8007F37CB /* SKSpriteNode+Utility.swift */, + ); + path = Contained; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4A7A5B2624888434007F37CB /* Contained */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4A7A5B3B24888468007F37CB /* Build configuration list for PBXNativeTarget "Contained" */; + buildPhases = ( + 4A7A5B2324888434007F37CB /* Sources */, + 4A7A5B2424888434007F37CB /* Frameworks */, + 4A7A5B2524888434007F37CB /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Contained; + productName = Contained; + productReference = 4A7A5B2724888435007F37CB /* Contained.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4A7A5B1F24888434007F37CB /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = "Lambda School"; + TargetAttributes = { + 4A7A5B2624888434007F37CB = { + CreatedOnToolsVersion = 11.5; + }; + }; + }; + buildConfigurationList = 4A7A5B2224888434007F37CB /* Build configuration list for PBXProject "Contained" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4A7A5B1E24888434007F37CB; + productRefGroup = 4A7A5B2824888435007F37CB /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4A7A5B2624888434007F37CB /* Contained */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4A7A5B2524888434007F37CB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4A7A5B3724888468007F37CB /* LaunchScreen.storyboard in Resources */, + 4A7A5B3F2488858D007F37CB /* Crab.xcassets in Resources */, + 4A7A5B48248893BC007F37CB /* Infoo.storyboard in Resources */, + 4A7A5B3424888468007F37CB /* Assets.xcassets in Resources */, + 4A7A5B3224888435007F37CB /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4A7A5B2324888434007F37CB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4A7A5B532488D7F0007F37CB /* CustomScene.swift in Sources */, + 4A7A5B4A248896DF007F37CB /* GameViewController.swift in Sources */, + 4A7A5B41248885A9007F37CB /* SKSpriteNode+Utility.swift in Sources */, + 4A7A5B4E248896F7007F37CB /* SettingsViewController.swift in Sources */, + 4A7A5B2B24888435007F37CB /* AppDelegate.swift in Sources */, + 4A7A5B45248886B3007F37CB /* Settings.swift in Sources */, + 4A7A5B4C248896EC007F37CB /* InfoViewController.swift in Sources */, + 4A7A5B2D24888435007F37CB /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 4A7A5B3024888435007F37CB /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 4A7A5B3124888435007F37CB /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 4A7A5B3524888468007F37CB /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 4A7A5B3624888468007F37CB /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + 4A7A5B46248893BC007F37CB /* Infoo.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 4A7A5B47248893BC007F37CB /* Base */, + ); + name = Infoo.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 4A7A5B3924888468007F37CB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 4A7A5B3A24888468007F37CB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 4A7A5B3C24888468007F37CB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 2S8MH4C36K; + INFOPLIST_FILE = Contained/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.LambdaSchool.Contained; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 4A7A5B3D24888468007F37CB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 2S8MH4C36K; + INFOPLIST_FILE = Contained/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.LambdaSchool.Contained; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4A7A5B2224888434007F37CB /* Build configuration list for PBXProject "Contained" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4A7A5B3924888468007F37CB /* Debug */, + 4A7A5B3A24888468007F37CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4A7A5B3B24888468007F37CB /* Build configuration list for PBXNativeTarget "Contained" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4A7A5B3C24888468007F37CB /* Debug */, + 4A7A5B3D24888468007F37CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4A7A5B1F24888434007F37CB /* Project object */; +} diff --git a/Contained/Contained.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Contained/Contained.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..078aecf1 --- /dev/null +++ b/Contained/Contained.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Contained/Contained.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Contained/Contained.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Contained/Contained.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Contained/Contained.xcodeproj/project.xcworkspace/xcuserdata/Brys.xcuserdatad/UserInterfaceState.xcuserstate b/Contained/Contained.xcodeproj/project.xcworkspace/xcuserdata/Brys.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 00000000..d9d13313 Binary files /dev/null and b/Contained/Contained.xcodeproj/project.xcworkspace/xcuserdata/Brys.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 00000000..69723bbe --- /dev/null +++ b/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcschemes/xcschememanagement.plist b/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..c9bbbbdc --- /dev/null +++ b/Contained/Contained.xcodeproj/xcuserdata/Brys.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Contained.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Contained/Contained/AppDelegate.swift b/Contained/Contained/AppDelegate.swift new file mode 100644 index 00000000..491b85e5 --- /dev/null +++ b/Contained/Contained/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/Contained/Contained/Assets.xcassets/AppIcon.appiconset/Contents.json b/Contained/Contained/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..9221b9bb --- /dev/null +++ b/Contained/Contained/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/Contents.json b/Contained/Contained/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/game_controller.imageset/Contents.json b/Contained/Contained/Assets.xcassets/game_controller.imageset/Contents.json new file mode 100644 index 00000000..3749084c --- /dev/null +++ b/Contained/Contained/Assets.xcassets/game_controller.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "game_controller.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "game_controller@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "game_controller@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller.png b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller.png new file mode 100644 index 00000000..df0891d5 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller.png differ diff --git a/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@2x.png b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@2x.png new file mode 100644 index 00000000..336e170d Binary files /dev/null and b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@2x.png differ diff --git a/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@3x.png b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@3x.png new file mode 100644 index 00000000..3b8ac924 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller@3x.png differ diff --git a/Contained/Contained/Assets.xcassets/info.imageset/Contents.json b/Contained/Contained/Assets.xcassets/info.imageset/Contents.json new file mode 100644 index 00000000..0a927f68 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/info.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "info.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "info@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "info@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/info.imageset/info.png b/Contained/Contained/Assets.xcassets/info.imageset/info.png new file mode 100644 index 00000000..64c0cb1e Binary files /dev/null and b/Contained/Contained/Assets.xcassets/info.imageset/info.png differ diff --git a/Contained/Contained/Assets.xcassets/info.imageset/info@2x.png b/Contained/Contained/Assets.xcassets/info.imageset/info@2x.png new file mode 100644 index 00000000..c623f0b9 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/info.imageset/info@2x.png differ diff --git a/Contained/Contained/Assets.xcassets/info.imageset/info@3x.png b/Contained/Contained/Assets.xcassets/info.imageset/info@3x.png new file mode 100644 index 00000000..1bf21719 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/info.imageset/info@3x.png differ diff --git a/Contained/Contained/Assets.xcassets/settings.imageset/Contents.json b/Contained/Contained/Assets.xcassets/settings.imageset/Contents.json new file mode 100644 index 00000000..e30c46c5 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/settings.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "settings.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "settings@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "settings@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/settings.imageset/settings.png b/Contained/Contained/Assets.xcassets/settings.imageset/settings.png new file mode 100644 index 00000000..8f712b18 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/settings.imageset/settings.png differ diff --git a/Contained/Contained/Assets.xcassets/settings.imageset/settings@2x.png b/Contained/Contained/Assets.xcassets/settings.imageset/settings@2x.png new file mode 100644 index 00000000..5ed4658a Binary files /dev/null and b/Contained/Contained/Assets.xcassets/settings.imageset/settings@2x.png differ diff --git a/Contained/Contained/Assets.xcassets/settings.imageset/settings@3x.png b/Contained/Contained/Assets.xcassets/settings.imageset/settings@3x.png new file mode 100644 index 00000000..674bea76 Binary files /dev/null and b/Contained/Contained/Assets.xcassets/settings.imageset/settings@3x.png differ diff --git a/Contained/Contained/Base.lproj/Infoo~.storyboard b/Contained/Contained/Base.lproj/Infoo~.storyboard new file mode 100644 index 00000000..479b4bfa --- /dev/null +++ b/Contained/Contained/Base.lproj/Infoo~.storyboard @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/Base.lproj/LaunchScreen.storyboard b/Contained/Contained/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..865e9329 --- /dev/null +++ b/Contained/Contained/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/Base.lproj/Main.storyboard b/Contained/Contained/Base.lproj/Main.storyboard new file mode 100644 index 00000000..ae9dd246 --- /dev/null +++ b/Contained/Contained/Base.lproj/Main.storyboard @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/Contained/Base.lproj/Infoo.storyboard b/Contained/Contained/Contained/Base.lproj/Infoo.storyboard new file mode 100644 index 00000000..301eabc3 --- /dev/null +++ b/Contained/Contained/Contained/Base.lproj/Infoo.storyboard @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/CustomScene.swift b/Contained/Contained/CustomScene.swift new file mode 100644 index 00000000..3eacc289 --- /dev/null +++ b/Contained/Contained/CustomScene.swift @@ -0,0 +1,51 @@ +// +// CustomScene.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import SpriteKit + +class CustomScene: SKScene { + let crab = SKSpriteNode() + + // Add and center child, initializing animation sequence + override func sceneDidLoad() { + super.sceneDidLoad() + addChild(crab) + crab.loadTextures(named: "HappyCrab", forKey: SKSpriteNode.textureKey) + crab.position = CGPoint(x: frame.midX, y: frame.midY) + } + + // Move to touch + public override func touchesBegan(_ touches: Set, with event: UIEvent?) { + + // Fetch a touch or leave + guard !touches.isEmpty, let touch = touches.first else { return } + + // Retrieve position + let position = touch.location(in: self) + + // Create move action + let actionDuration = 1.0 + let moveAction = SKAction.move(to: position, duration: actionDuration) + + let rollAction = SKAction.rotate(byAngle: CGFloat.pi * 2, duration: actionDuration) + let zoomAction = SKAction.scale(by: 1.3, duration: 0.3) + let unzoomAction = SKAction.scale(to: 1.0, duration: 0.1) + + switch Settings.shared.shouldZoom { + case false: + crab.run(moveAction) + case true: + let sequenceAction = SKAction.sequence([zoomAction, moveAction, unzoomAction]) + crab.run(sequenceAction) + } + + if Settings.shared.shouldRoll { + crab.run(rollAction) + } + } +} diff --git a/Contained/Contained/GameViewController.swift b/Contained/Contained/GameViewController.swift new file mode 100644 index 00000000..929ebf8a --- /dev/null +++ b/Contained/Contained/GameViewController.swift @@ -0,0 +1,23 @@ +// +// GameViewViewController.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import UIKit +import SpriteKit + +class GameViewController: UIViewController { + + @IBOutlet weak var skview: SKView! + + var skscene: CustomScene? = nil + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + skscene = CustomScene(size: view.bounds.size) + skview.presentScene(skscene) + } +} diff --git a/Contained/Contained/Info.plist b/Contained/Contained/Info.plist new file mode 100644 index 00000000..2a3483c0 --- /dev/null +++ b/Contained/Contained/Info.plist @@ -0,0 +1,64 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Contained/Contained/InfoViewController.swift b/Contained/Contained/InfoViewController.swift new file mode 100644 index 00000000..a1e90387 --- /dev/null +++ b/Contained/Contained/InfoViewController.swift @@ -0,0 +1,47 @@ +// +// InfoViewController.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import UIKit + +class InfoViewController: UIViewController { + + @IBAction func DontButton(_ sender: Any) { + navigationController?.popToRootViewController(animated: true) + } + + + + + + + + override func viewDidLoad() { + super.viewDidLoad() + + + + + + + + + + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/Contained/Contained/SceneDelegate.swift b/Contained/Contained/SceneDelegate.swift new file mode 100644 index 00000000..64280ea3 --- /dev/null +++ b/Contained/Contained/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/Contained/Contained/Settings.swift b/Contained/Contained/Settings.swift new file mode 100644 index 00000000..abfe9698 --- /dev/null +++ b/Contained/Contained/Settings.swift @@ -0,0 +1,18 @@ +// +// Settings.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + + +import Foundation + +class Settings { + static let shared = Settings() + private init() {} + + var shouldRoll = false + var shouldZoom = false +} diff --git a/Contained/Contained/SettingsViewController.swift b/Contained/Contained/SettingsViewController.swift new file mode 100644 index 00000000..12cae6f2 --- /dev/null +++ b/Contained/Contained/SettingsViewController.swift @@ -0,0 +1,44 @@ +// +// SettingsViewController.swift +// Contained +// +// Created by B$hady on 6/3/20. +// Copyright © 2020 Lambda School. All rights reserved. +// + +import UIKit + +class SettingsViewController: UIViewController { + + + + @IBAction func toggleroll(_ sender: UISwitch) { + Settings.shared.shouldRoll = sender.isOn + } + + + @IBAction func toggleZoom(_ sender: UISwitch) { + Settings.shared.shouldZoom = sender.isOn + } + + + + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +}