From a0f616e91e9abda70ed962bbf4e6bda8cf79e081 Mon Sep 17 00:00:00 2001 From: Josh Kocsis Date: Wed, 22 Apr 2020 22:29:48 -0500 Subject: [PATCH] Finished the game and all functions are working. --- Contained/Contained.xcodeproj/project.pbxproj | 371 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + Contained/Contained/AppDelegate.swift | 37 ++ .../AppIcon.appiconset/Contents.json | 98 +++++ .../Contained/Assets.xcassets/Contents.json | 6 + .../game_controller-1.imageset/Contents.json | 21 + .../game_controller@2x.png | Bin 0 -> 654 bytes .../game_controller-2.imageset/Contents.json | 21 + .../game_controller@3x.png | Bin 0 -> 971 bytes .../game_controller.imageset/Contents.json | 21 + .../game_controller.png | Bin 0 -> 360 bytes .../info-1.imageset/Contents.json | 21 + .../info-1.imageset/info@2x.png | Bin 0 -> 520 bytes .../info-2.imageset/Contents.json | 21 + .../info-2.imageset/info@3x.png | Bin 0 -> 884 bytes .../info.imageset/Contents.json | 21 + .../Assets.xcassets/info.imageset/info.png | Bin 0 -> 304 bytes .../settings-1.imageset/Contents.json | 21 + .../settings-1.imageset/settings@2x.png | Bin 0 -> 841 bytes .../settings-2.imageset/Contents.json | 21 + .../settings-2.imageset/settings@3x.png | Bin 0 -> 1406 bytes .../settings.imageset/Contents.json | 21 + .../settings.imageset/settings.png | Bin 0 -> 418 bytes .../Base.lproj/LaunchScreen.storyboard | 25 ++ .../Contained/Base.lproj/Main.storyboard | 135 +++++++ Contained/Contained/CustomScene.swift | 51 +++ Contained/Contained/GameViewController.swift | 42 ++ Contained/Contained/Info.plist | 62 +++ Contained/Contained/Info.storyboard | 140 +++++++ Contained/Contained/InfoViewController.swift | 34 ++ Contained/Contained/SceneDelegate.swift | 53 +++ Contained/Contained/Settings.swift | 18 + .../Contained/SettingsViewController.swift | 23 ++ 34 files changed, 1299 insertions(+) create mode 100644 Contained/Contained.xcodeproj/project.pbxproj create mode 100644 Contained/Contained.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Contained/Contained.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Contained/Contained/AppDelegate.swift create mode 100644 Contained/Contained/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/game_controller-1.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/game_controller-1.imageset/game_controller@2x.png create mode 100644 Contained/Contained/Assets.xcassets/game_controller-2.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/game_controller-2.imageset/game_controller@3x.png create mode 100644 Contained/Contained/Assets.xcassets/game_controller.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/game_controller.imageset/game_controller.png create mode 100644 Contained/Contained/Assets.xcassets/info-1.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/info-1.imageset/info@2x.png create mode 100644 Contained/Contained/Assets.xcassets/info-2.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/info-2.imageset/info@3x.png create mode 100644 Contained/Contained/Assets.xcassets/info.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/info.imageset/info.png create mode 100644 Contained/Contained/Assets.xcassets/settings-1.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/settings-1.imageset/settings@2x.png create mode 100644 Contained/Contained/Assets.xcassets/settings-2.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/settings-2.imageset/settings@3x.png create mode 100644 Contained/Contained/Assets.xcassets/settings.imageset/Contents.json create mode 100644 Contained/Contained/Assets.xcassets/settings.imageset/settings.png create mode 100644 Contained/Contained/Base.lproj/LaunchScreen.storyboard create mode 100644 Contained/Contained/Base.lproj/Main.storyboard create mode 100644 Contained/Contained/CustomScene.swift create mode 100644 Contained/Contained/GameViewController.swift create mode 100644 Contained/Contained/Info.plist create mode 100644 Contained/Contained/Info.storyboard create mode 100644 Contained/Contained/InfoViewController.swift create mode 100644 Contained/Contained/SceneDelegate.swift create mode 100644 Contained/Contained/Settings.swift create mode 100644 Contained/Contained/SettingsViewController.swift diff --git a/Contained/Contained.xcodeproj/project.pbxproj b/Contained/Contained.xcodeproj/project.pbxproj new file mode 100644 index 00000000..ecdc252c --- /dev/null +++ b/Contained/Contained.xcodeproj/project.pbxproj @@ -0,0 +1,371 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 51C9D3242451213F00093086 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D3232451213F00093086 /* AppDelegate.swift */; }; + 51C9D3262451213F00093086 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D3252451213F00093086 /* SceneDelegate.swift */; }; + 51C9D32B2451213F00093086 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51C9D3292451213F00093086 /* Main.storyboard */; }; + 51C9D32D2451214000093086 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51C9D32C2451214000093086 /* Assets.xcassets */; }; + 51C9D3302451214000093086 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51C9D32E2451214000093086 /* LaunchScreen.storyboard */; }; + 51C9D338245121F400093086 /* Crab.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51C9D337245121F400093086 /* Crab.xcassets */; }; + 51C9D33A2451220700093086 /* SKSpriteNode+Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D3392451220700093086 /* SKSpriteNode+Utility.swift */; }; + 51C9D33C2451222000093086 /* Info.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51C9D33B2451222000093086 /* Info.storyboard */; }; + 51C9D33E2451225600093086 /* Settings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D33D2451225600093086 /* Settings.swift */; }; + 51C9D34024512C2200093086 /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D33F24512C2200093086 /* GameViewController.swift */; }; + 51C9D34224512C2F00093086 /* InfoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D34124512C2F00093086 /* InfoViewController.swift */; }; + 51C9D34424512C4300093086 /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D34324512C4300093086 /* SettingsViewController.swift */; }; + 51C9D3462451385A00093086 /* CustomScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51C9D3452451385A00093086 /* CustomScene.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 51C9D3202451213F00093086 /* Contained.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Contained.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 51C9D3232451213F00093086 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 51C9D3252451213F00093086 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 51C9D32A2451213F00093086 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 51C9D32C2451214000093086 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 51C9D32F2451214000093086 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 51C9D3312451214000093086 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 51C9D337245121F400093086 /* Crab.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Crab.xcassets; path = ../../Crab.xcassets; sourceTree = ""; }; + 51C9D3392451220700093086 /* SKSpriteNode+Utility.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SKSpriteNode+Utility.swift"; path = "../../SKSpriteNode+Utility.swift"; sourceTree = ""; }; + 51C9D33B2451222000093086 /* Info.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Info.storyboard; sourceTree = ""; }; + 51C9D33D2451225600093086 /* Settings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Settings.swift; sourceTree = ""; }; + 51C9D33F24512C2200093086 /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = ""; }; + 51C9D34124512C2F00093086 /* InfoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InfoViewController.swift; sourceTree = ""; }; + 51C9D34324512C4300093086 /* SettingsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsViewController.swift; sourceTree = ""; }; + 51C9D3452451385A00093086 /* CustomScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomScene.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 51C9D31D2451213F00093086 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 51C9D3172451213F00093086 = { + isa = PBXGroup; + children = ( + 51C9D3222451213F00093086 /* Contained */, + 51C9D3212451213F00093086 /* Products */, + ); + sourceTree = ""; + }; + 51C9D3212451213F00093086 /* Products */ = { + isa = PBXGroup; + children = ( + 51C9D3202451213F00093086 /* Contained.app */, + ); + name = Products; + sourceTree = ""; + }; + 51C9D3222451213F00093086 /* Contained */ = { + isa = PBXGroup; + children = ( + 51C9D3232451213F00093086 /* AppDelegate.swift */, + 51C9D3252451213F00093086 /* SceneDelegate.swift */, + 51C9D3292451213F00093086 /* Main.storyboard */, + 51C9D33B2451222000093086 /* Info.storyboard */, + 51C9D32C2451214000093086 /* Assets.xcassets */, + 51C9D337245121F400093086 /* Crab.xcassets */, + 51C9D3392451220700093086 /* SKSpriteNode+Utility.swift */, + 51C9D32E2451214000093086 /* LaunchScreen.storyboard */, + 51C9D3312451214000093086 /* Info.plist */, + 51C9D33D2451225600093086 /* Settings.swift */, + 51C9D33F24512C2200093086 /* GameViewController.swift */, + 51C9D34124512C2F00093086 /* InfoViewController.swift */, + 51C9D34324512C4300093086 /* SettingsViewController.swift */, + 51C9D3452451385A00093086 /* CustomScene.swift */, + ); + path = Contained; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 51C9D31F2451213F00093086 /* Contained */ = { + isa = PBXNativeTarget; + buildConfigurationList = 51C9D3342451214000093086 /* Build configuration list for PBXNativeTarget "Contained" */; + buildPhases = ( + 51C9D31C2451213F00093086 /* Sources */, + 51C9D31D2451213F00093086 /* Frameworks */, + 51C9D31E2451213F00093086 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Contained; + productName = Contained; + productReference = 51C9D3202451213F00093086 /* Contained.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 51C9D3182451213F00093086 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1140; + LastUpgradeCheck = 1140; + ORGANIZATIONNAME = "Lambda, Inc"; + TargetAttributes = { + 51C9D31F2451213F00093086 = { + CreatedOnToolsVersion = 11.4.1; + }; + }; + }; + buildConfigurationList = 51C9D31B2451213F00093086 /* Build configuration list for PBXProject "Contained" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 51C9D3172451213F00093086; + productRefGroup = 51C9D3212451213F00093086 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 51C9D31F2451213F00093086 /* Contained */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 51C9D31E2451213F00093086 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51C9D3302451214000093086 /* LaunchScreen.storyboard in Resources */, + 51C9D338245121F400093086 /* Crab.xcassets in Resources */, + 51C9D32D2451214000093086 /* Assets.xcassets in Resources */, + 51C9D33C2451222000093086 /* Info.storyboard in Resources */, + 51C9D32B2451213F00093086 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 51C9D31C2451213F00093086 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51C9D34024512C2200093086 /* GameViewController.swift in Sources */, + 51C9D33A2451220700093086 /* SKSpriteNode+Utility.swift in Sources */, + 51C9D34424512C4300093086 /* SettingsViewController.swift in Sources */, + 51C9D3242451213F00093086 /* AppDelegate.swift in Sources */, + 51C9D33E2451225600093086 /* Settings.swift in Sources */, + 51C9D3462451385A00093086 /* CustomScene.swift in Sources */, + 51C9D34224512C2F00093086 /* InfoViewController.swift in Sources */, + 51C9D3262451213F00093086 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 51C9D3292451213F00093086 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 51C9D32A2451213F00093086 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 51C9D32E2451214000093086 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 51C9D32F2451214000093086 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 51C9D3322451214000093086 /* 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.4; + 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; + }; + 51C9D3332451214000093086 /* 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.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 51C9D3352451214000093086 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HMX25T49H2; + INFOPLIST_FILE = Contained/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = jkGames.Contained; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 51C9D3362451214000093086 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HMX25T49H2; + INFOPLIST_FILE = Contained/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = jkGames.Contained; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 51C9D31B2451213F00093086 /* Build configuration list for PBXProject "Contained" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51C9D3322451214000093086 /* Debug */, + 51C9D3332451214000093086 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 51C9D3342451214000093086 /* Build configuration list for PBXNativeTarget "Contained" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51C9D3352451214000093086 /* Debug */, + 51C9D3362451214000093086 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 51C9D3182451213F00093086 /* 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/AppDelegate.swift b/Contained/Contained/AppDelegate.swift new file mode 100644 index 00000000..bd0337f7 --- /dev/null +++ b/Contained/Contained/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. 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-1.imageset/Contents.json b/Contained/Contained/Assets.xcassets/game_controller-1.imageset/Contents.json new file mode 100644 index 00000000..33d830dc --- /dev/null +++ b/Contained/Contained/Assets.xcassets/game_controller-1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "game_controller@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Contained/Contained/Assets.xcassets/game_controller-1.imageset/game_controller@2x.png b/Contained/Contained/Assets.xcassets/game_controller-1.imageset/game_controller@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..336e170dd11760256bfa08bb2618214171eff65a GIT binary patch literal 654 zcmV;90&)F`P)ENo2MkOM*nkb#fDPDy4cLGU zxG5Q5V-h0r00aPh(eoHGeo;>K31BO~V*ooDZvn*2ysK?%mCFMWouL9z55W74H)$<@ zL@c^x=2-nSGZ(4=t^k|>a7*16u7*awv9kZ&KE{x&4a;(d8!IavW zd6|oq?5x)^mu3L-T$h%^KxI&cP`GCvW&n#K;HbsGu6aKy%ELj0*qCMgZhbCxC@H&C zT3(cxE+u6bHOzA95dD=f>v}lpG4SM~^FT!303Le^d|>9MG;ps!*kWe-cWG&c4MGOj zE*+*zi>zzTxnX8%LIG@Q+P2Pe>1B-xzZ%Ztp{(I5%e?EMONn^QdOLV+mD2aPP1rY;HMREbkZPUg^@TM%9YfJ^ZveWMeMJ+`bMD7c`Ypme)YU$+ oFX9c@fDPDy4cLGU*nk_7Uq9BL|H>-OzW@LL07*qoM6N<$f;NF6j{pDw literal 0 HcmV?d00001 diff --git a/Contained/Contained/Assets.xcassets/game_controller-2.imageset/Contents.json b/Contained/Contained/Assets.xcassets/game_controller-2.imageset/Contents.json new file mode 100644 index 00000000..3eadf4e6 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/game_controller-2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "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-2.imageset/game_controller@3x.png b/Contained/Contained/Assets.xcassets/game_controller-2.imageset/game_controller@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..3b8ac924c7ab8329e2c3ddac51b32426588e423d GIT binary patch literal 971 zcmV;+12p`JP)bKoEuB7-~bAn0XH6Y6pxx1Vt*V22y0Fq#ExgS^ax1=np3M#$Mh=8C8nj&a| zCTNPF37R5kf+lE+pb45HXo4nailC22U#1#ZL<#@}fEj?&eO$WtZ?7)`5Bm?m+P!YK zUa#HzMpc_h=9_XWOGK(Ikj0i=O}xN10GcgZ187xsl{IJw^bKN_3Cy7vVfA()OfG<` z2Af-@cK}`h=!w{ioAWG+Sp?*{^LKip)&iI(1r1iqWkJY$b>Z09q<13n0^mEj?$vKqy|e<&8}zzUWEt!_MC2z?dKGMg zee@+!_NuS|{ev8PRa$^9$#FQN-e4#qEmOPxd|Fj!(JR{Zj0xEzpLVRGT?gHUk^4vq z`Vqjjv&W19S)FIumuz=6l4`^?TWZ5&rL;QboV~kucx@!b3|j3uR+S-W%kylySoXP& zsO_i&TR-az-9~G8tg9#=?Ne3;!f!JKeZS|kyA-AP*@BsJ91^` zmR&?=BSBe5Upbj5YUh+)v;zWS;q9a0zvE5U;kh$@X!7@=K_&ulIZ-ey1A}4cdESSB z9t2>Z-ygjUkH{{9zvb4Y_h$p0q9@aYfYuWMount@m33H@-Xc<_F6lGub#%`4EK%ug z+C%s(y^cAY)2Gvi2^GT@6N}bbA`M$-)F=5E<002ovPDHLkV1h8mxV-=X literal 0 HcmV?d00001 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..e9dc4d9d --- /dev/null +++ b/Contained/Contained/Assets.xcassets/game_controller.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "game_controller.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "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 0000000000000000000000000000000000000000..df0891d50a57cd2afb5874ad0f7916e39de8f438 GIT binary patch literal 360 zcmV-u0hj)XP)np)db4V1*t^4gE2SiO}~kOZBdf%bj(LGpBgUwF@#0D0000n%OBKeVnp2UxQoFC5^Y7&sX4t0Fe^OWc~8Y-QV2Y;D;@=kc=Tj{(OzeYgF&piMy zz>kr??gkuzx5+%+%#sfG+8VHlMh)zf&pRRD!oA8e8AqU46lkCVnv5XdM*~zT7>pXD zJr38v@65BWPoNw#es4yETzaaNJ7oMG&wkJISqwc?*i1(?ix{2Rg4cVY%o_AUAddoD zkQ2dHOimQDhk#rz81j9TljhN$C!Z7aDyFs@u#3sFWAo^G1(5MMMs)x;5#C%)P>kGw zKR#}$iyEJEx`M?UM5%ihRR)W2)3*^dmsGCGDC0RM0qyD(uo%`8+V)P+# zY&;Ki&5(8&busjG?pg1&d3F|~WgUkJCbb*rnrXedV|Y9k&rNoq<)qu^&|1B z36va>99ufcOizcJ83Aq>K+;E&nGcE)<|>(a&$GRndd;-3xdE?cwi{hnTC&Cq(~n-e zP`9M#Q_WXDrm!N=-+1~S{XB>)yYx;b&;l*cGJzIonLrElLhT>nUfJc#3-eU~0000< KMNUMnLSTYkWtI~F literal 0 HcmV?d00001 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..a067ee40 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/info.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "info.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "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 0000000000000000000000000000000000000000..64c0cb1e8fcd6f3b4c43af1943ebdf7fb0b76ebc GIT binary patch literal 304 zcmeAS@N?(olHy`uVBq!ia0vp^av;pX1|+Qw)-3{3oCO|{#S9GGLLkg|>2BR0px`4< z7sn8f<8P;56l_u8aVgI|BDRjjYk`UP0v7KLB5xj8o%mZ|EYl~EVDZPm__yk0^@$rM zDm4ijCI;M*_qjBwM8($A^T}c3)oR@yVGKMB{0>t-F`P-g$NeIR!DnkoBjXOX7vbwT z?(7J@dhYzbm1+;IJvLv4SIFhakXag+PYI` zZ>V^bmGTHCevZ{u>Jhem7s7SVdeb+Viq{&yx&OiTho?+Z@tEQ$d@t>&trrSy;s%+svuQM=sy85}Sb4q9e0Ou!o Aym}u;v&5PZ4{|cuKr$r_dL{{yPpjtYCjL z+da(EkOJ-^qqcV9{>7Yt%L|8F0KZbDFgUN8Anj7Jr}tXoK>r*L77VruTs`ls@)p4F z(cCK$?IM#A&9)yp_c(~=3IIJ3S&aE41i-rhKd0n-IAAw@0)wYS2i8mc$&el<+<_(~Lm{FQfPykC7ydO;%#NxdoRRqPc8TUm?nKL)e&a+Ln$@qbE%d*h)V&-HkUjxJx@Y%ah|7QPo5v{- T#eW+l00000NkvXXu0mjffUtMC literal 0 HcmV?d00001 diff --git a/Contained/Contained/Assets.xcassets/settings-2.imageset/Contents.json b/Contained/Contained/Assets.xcassets/settings-2.imageset/Contents.json new file mode 100644 index 00000000..89a160d0 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/settings-2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "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-2.imageset/settings@3x.png b/Contained/Contained/Assets.xcassets/settings-2.imageset/settings@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..674bea76318a3b8df628dd1a44c78736cf55507d GIT binary patch literal 1406 zcmV-^1%djBP)xbr9w~ z56tuB0q%gVAan(x3&`v}+-gRnBSDZ@fZ!RJ!PsMy;_k=Q;@cmP#LUPe{P-zDkb%xX z=aGTVKxd#gGKgqTM23i1rXiyJX5`-ry(1z6;OXwq&&*t8pzXk&02}}`%-lH~KPV_O zlf$_O00n>^fMMo7y28vHbqcs00KS=}!#O-M4-@B>cgJ^A=LFGv1)!U`fDM4jm(8^B$r~v#j za{LQ3AAfWoeYRL06uLX4e>L8&kJ>ox)}EO@rSpL-ix6u9>x-c_>33%>`r{;7=ySb zjY7##crS>GiK1S~XExVWf8oMhT0-x+v)4*MX-0e(CFKgmn_qj%a!D~V)biCArPM;l z%q4&a0MDzhKZ+JTm%{zOB=zYbU%9}&bxEa37X%|MfZr#4<30e`$AN$(N&-qt__-kO z4p?1k#U=QT zgEzgKDD}Hcqd*U*0)Dpl#-4fB{IM6GC9bzrNW8?HBV zSdnG}j5j@Vu&iSuR^0>-SSG&W-rYbG$tkl^7nL^?3Rwkj7M^#O;_1+MlIF?b0@|e~;>D*T!ORz_Y>d_T{v)EEh-zuc)#BB?<+^@-A%Q9> z7X^Rmx)$`Bi=<-#V|L}m$)btqKt$z?=9f;vx(t9X4u|dl7)8tOW?Zv$zV1ZQWog8u zRgU^A;eL?s7?CZg3KfcuJt3Vux*wr;rUa@3pCBbUm93^s~qHw0Q2@ z#&CWf+hJw{`s4|=#`tGTAPZ*mTn97v%v{Jmz6Sum0(eynYFx(08J7RR%;Y-({N{Mg zSHa|ZU3=SD4pi}7t`*YQY1 z`=$8~BC0Un8Tu;Vsxuo&Ry{gm5Im`59FIGBC~M2!RRQ;MpOi5O&Z8FtEgdUk|c@mnqzE)k3(cQw!|a3vckP5xkp9nMyUk3*5Vx z&SL0sa||~83a2f-{q25FjdjmRa)y%MIh!py1D!_(Is=`7&LhhB3WE+|etK?AQvd(} M07*qoM6N<$f=*|ahX4Qo literal 0 HcmV?d00001 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..9026c274 --- /dev/null +++ b/Contained/Contained/Assets.xcassets/settings.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "settings.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "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 0000000000000000000000000000000000000000..8f712b18c2139cb1ff24e2041cdaac6e3de94e2b GIT binary patch literal 418 zcmV;T0bTxyP)8=4)lNrMjH=+ zS|9A&Xqdie&qCsPMU?Av$(|B&E;CtULk}##snCe;KnvW={;I0J$ket_AJp3r$Ma5S zRNw`;nk6u0t@**}N6uwtjwzTTYaB2I@J-ga?9{WVSugH4p4?<2V7=Dco_&zmPV8d} zH}gv-3PQ>~;9`o$B=}xUmmm&_7?W|F0^9szb8qWI1#ovFa{qYP5O)QkHbjWK6fXB) z+Q_Egjp?t5sFt1To4U4h9Uo4$FOcJ}%%hV;EG@c3TKo`^Zbw>ld(z^s7Xp8)^f{u~ zE4?yjQ*u#N0nV$rvwgc5W-hAJOP??z;?^d+74xdv$1o2e{x@%@Pug!Kwh8el`2YX_ M07*qoM6N<$f}UQspa1{> literal 0 HcmV?d00001 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..7845ccb5 --- /dev/null +++ b/Contained/Contained/Base.lproj/Main.storyboard @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/CustomScene.swift b/Contained/Contained/CustomScene.swift new file mode 100644 index 00000000..f4e32d67 --- /dev/null +++ b/Contained/Contained/CustomScene.swift @@ -0,0 +1,51 @@ +// +// CustomScene.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. All rights reserved. +// + +import Foundation +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) + } + + // 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..2a21415c --- /dev/null +++ b/Contained/Contained/GameViewController.swift @@ -0,0 +1,42 @@ +// +// GameViewController.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. 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) + + } + + 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. + } + */ + +} diff --git a/Contained/Contained/Info.plist b/Contained/Contained/Info.plist new file mode 100644 index 00000000..b5f9c079 --- /dev/null +++ b/Contained/Contained/Info.plist @@ -0,0 +1,62 @@ + + + + + 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 + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Contained/Contained/Info.storyboard b/Contained/Contained/Info.storyboard new file mode 100644 index 00000000..20dd74bb --- /dev/null +++ b/Contained/Contained/Info.storyboard @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Contained/Contained/InfoViewController.swift b/Contained/Contained/InfoViewController.swift new file mode 100644 index 00000000..9c4614ed --- /dev/null +++ b/Contained/Contained/InfoViewController.swift @@ -0,0 +1,34 @@ +// +// InfoViewController.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. All rights reserved. +// + +import UIKit + +class InfoViewController: UIViewController { + @IBAction func doneButtonTapped(_ sender: Any) { + + self.navigationController?.popToRootViewController(animated: true) + } + + 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. + } + */ + +} diff --git a/Contained/Contained/SceneDelegate.swift b/Contained/Contained/SceneDelegate.swift new file mode 100644 index 00000000..95ffe70c --- /dev/null +++ b/Contained/Contained/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. 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..ae1db256 --- /dev/null +++ b/Contained/Contained/Settings.swift @@ -0,0 +1,18 @@ +// +// Settings.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. 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..7ee2281a --- /dev/null +++ b/Contained/Contained/SettingsViewController.swift @@ -0,0 +1,23 @@ +// +// SettingsViewController.swift +// Contained +// +// Created by Josh Kocsis on 4/22/20. +// Copyright © 2020 Lambda, Inc. All rights reserved. +// + +import UIKit + +class SettingsViewController: UIViewController { + @IBAction func toggleRoll(_ sender: UISwitch) { + Settings.shared.shouldRoll.toggle() + } + + @IBAction func toggleZoom(_ sender: UISwitch) { + Settings.shared.shouldZoom.toggle() + } + + override func viewDidLoad() { + super.viewDidLoad() + } +}