From 2390f0f3e5fe3265c777a09090ce35639268b4d3 Mon Sep 17 00:00:00 2001 From: Max Hunt Date: Thu, 28 Nov 2019 20:53:45 +0000 Subject: [PATCH] Initial Commit --- .../project.pbxproj | 351 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcschemes/xcschememanagement.plist | 14 + Shitty Volume Switcher/Actions.sks | Bin 0 -> 1892 bytes Shitty Volume Switcher/AppDelegate.swift | 41 ++ .../AppIcon.appiconset/Contents.json | 98 +++++ .../Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 25 ++ .../Base.lproj/Main.storyboard | 24 ++ Shitty Volume Switcher/GameScene.sks | Bin 0 -> 4694 bytes Shitty Volume Switcher/GameScene.swift | 89 +++++ .../GameViewController.swift | 50 +++ Shitty Volume Switcher/Info.plist | 47 +++ 14 files changed, 760 insertions(+) create mode 100644 Shitty Volume Switcher.xcodeproj/project.pbxproj create mode 100644 Shitty Volume Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Shitty Volume Switcher.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Shitty Volume Switcher.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Shitty Volume Switcher/Actions.sks create mode 100644 Shitty Volume Switcher/AppDelegate.swift create mode 100644 Shitty Volume Switcher/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Shitty Volume Switcher/Assets.xcassets/Contents.json create mode 100644 Shitty Volume Switcher/Base.lproj/LaunchScreen.storyboard create mode 100644 Shitty Volume Switcher/Base.lproj/Main.storyboard create mode 100644 Shitty Volume Switcher/GameScene.sks create mode 100644 Shitty Volume Switcher/GameScene.swift create mode 100644 Shitty Volume Switcher/GameViewController.swift create mode 100644 Shitty Volume Switcher/Info.plist diff --git a/Shitty Volume Switcher.xcodeproj/project.pbxproj b/Shitty Volume Switcher.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5350624 --- /dev/null +++ b/Shitty Volume Switcher.xcodeproj/project.pbxproj @@ -0,0 +1,351 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 503FC2C923906B5500B8095B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503FC2C823906B5500B8095B /* AppDelegate.swift */; }; + 503FC2CB23906B5500B8095B /* GameScene.sks in Resources */ = {isa = PBXBuildFile; fileRef = 503FC2CA23906B5500B8095B /* GameScene.sks */; }; + 503FC2CD23906B5500B8095B /* Actions.sks in Resources */ = {isa = PBXBuildFile; fileRef = 503FC2CC23906B5500B8095B /* Actions.sks */; }; + 503FC2CF23906B5500B8095B /* GameScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503FC2CE23906B5500B8095B /* GameScene.swift */; }; + 503FC2D123906B5500B8095B /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 503FC2D023906B5500B8095B /* GameViewController.swift */; }; + 503FC2D423906B5500B8095B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 503FC2D223906B5500B8095B /* Main.storyboard */; }; + 503FC2D623906B5800B8095B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 503FC2D523906B5800B8095B /* Assets.xcassets */; }; + 503FC2D923906B5800B8095B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 503FC2D723906B5800B8095B /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 503FC2C523906B5500B8095B /* Shitty Volume Switcher.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Shitty Volume Switcher.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 503FC2C823906B5500B8095B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 503FC2CA23906B5500B8095B /* GameScene.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = GameScene.sks; sourceTree = ""; }; + 503FC2CC23906B5500B8095B /* Actions.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Actions.sks; sourceTree = ""; }; + 503FC2CE23906B5500B8095B /* GameScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameScene.swift; sourceTree = ""; }; + 503FC2D023906B5500B8095B /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = ""; }; + 503FC2D323906B5500B8095B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 503FC2D523906B5800B8095B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 503FC2D823906B5800B8095B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 503FC2DA23906B5800B8095B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 503FC2C223906B5500B8095B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 503FC2BC23906B5500B8095B = { + isa = PBXGroup; + children = ( + 503FC2C723906B5500B8095B /* Shitty Volume Switcher */, + 503FC2C623906B5500B8095B /* Products */, + ); + sourceTree = ""; + }; + 503FC2C623906B5500B8095B /* Products */ = { + isa = PBXGroup; + children = ( + 503FC2C523906B5500B8095B /* Shitty Volume Switcher.app */, + ); + name = Products; + sourceTree = ""; + }; + 503FC2C723906B5500B8095B /* Shitty Volume Switcher */ = { + isa = PBXGroup; + children = ( + 503FC2C823906B5500B8095B /* AppDelegate.swift */, + 503FC2CA23906B5500B8095B /* GameScene.sks */, + 503FC2CC23906B5500B8095B /* Actions.sks */, + 503FC2CE23906B5500B8095B /* GameScene.swift */, + 503FC2D023906B5500B8095B /* GameViewController.swift */, + 503FC2D223906B5500B8095B /* Main.storyboard */, + 503FC2D523906B5800B8095B /* Assets.xcassets */, + 503FC2D723906B5800B8095B /* LaunchScreen.storyboard */, + 503FC2DA23906B5800B8095B /* Info.plist */, + ); + path = "Shitty Volume Switcher"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 503FC2C423906B5500B8095B /* Shitty Volume Switcher */ = { + isa = PBXNativeTarget; + buildConfigurationList = 503FC2DD23906B5800B8095B /* Build configuration list for PBXNativeTarget "Shitty Volume Switcher" */; + buildPhases = ( + 503FC2C123906B5500B8095B /* Sources */, + 503FC2C223906B5500B8095B /* Frameworks */, + 503FC2C323906B5500B8095B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Shitty Volume Switcher"; + productName = "Shitty Volume Switcher"; + productReference = 503FC2C523906B5500B8095B /* Shitty Volume Switcher.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 503FC2BD23906B5500B8095B /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1120; + LastUpgradeCheck = 1120; + ORGANIZATIONNAME = smt; + TargetAttributes = { + 503FC2C423906B5500B8095B = { + CreatedOnToolsVersion = 11.2.1; + }; + }; + }; + buildConfigurationList = 503FC2C023906B5500B8095B /* Build configuration list for PBXProject "Shitty Volume Switcher" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 503FC2BC23906B5500B8095B; + productRefGroup = 503FC2C623906B5500B8095B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 503FC2C423906B5500B8095B /* Shitty Volume Switcher */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 503FC2C323906B5500B8095B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 503FC2D423906B5500B8095B /* Main.storyboard in Resources */, + 503FC2CB23906B5500B8095B /* GameScene.sks in Resources */, + 503FC2D623906B5800B8095B /* Assets.xcassets in Resources */, + 503FC2D923906B5800B8095B /* LaunchScreen.storyboard in Resources */, + 503FC2CD23906B5500B8095B /* Actions.sks in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 503FC2C123906B5500B8095B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 503FC2CF23906B5500B8095B /* GameScene.swift in Sources */, + 503FC2D123906B5500B8095B /* GameViewController.swift in Sources */, + 503FC2C923906B5500B8095B /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 503FC2D223906B5500B8095B /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 503FC2D323906B5500B8095B /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 503FC2D723906B5800B8095B /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 503FC2D823906B5800B8095B /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 503FC2DB23906B5800B8095B /* 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.2; + 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; + }; + 503FC2DC23906B5800B8095B /* 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.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 503FC2DE23906B5800B8095B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 36JR976L6Y; + INFOPLIST_FILE = "Shitty Volume Switcher/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "edu.smt.Shitty-Volume-Switcher"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 503FC2DF23906B5800B8095B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 36JR976L6Y; + INFOPLIST_FILE = "Shitty Volume Switcher/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "edu.smt.Shitty-Volume-Switcher"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 503FC2C023906B5500B8095B /* Build configuration list for PBXProject "Shitty Volume Switcher" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 503FC2DB23906B5800B8095B /* Debug */, + 503FC2DC23906B5800B8095B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 503FC2DD23906B5800B8095B /* Build configuration list for PBXNativeTarget "Shitty Volume Switcher" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 503FC2DE23906B5800B8095B /* Debug */, + 503FC2DF23906B5800B8095B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 503FC2BD23906B5500B8095B /* Project object */; +} diff --git a/Shitty Volume Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Shitty Volume Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..78c8c45 --- /dev/null +++ b/Shitty Volume Switcher.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Shitty Volume Switcher.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Shitty Volume Switcher.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Shitty Volume Switcher.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Shitty Volume Switcher.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist b/Shitty Volume Switcher.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..4241af0 --- /dev/null +++ b/Shitty Volume Switcher.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Shitty Volume Switcher.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Shitty Volume Switcher/Actions.sks b/Shitty Volume Switcher/Actions.sks new file mode 100644 index 0000000000000000000000000000000000000000..053052001e4f4fd4d597c1c74f1ab1919ec27642 GIT binary patch literal 1892 zcmZ`)Yj6`)6uz&eFQ92@dGy_G5(=enKp96$L5ff*(6lru;IeI&c1yYm*-fOibnb+L ziXbnkh*;Vbc~r*AOL@vLhztS(Eh-2K3jT3q#^DDlI*vCFpjFt+-Fx=z-gC}(zVF^t zIc&13<>Xv}2or9=_dl5RZpo?2cEzl>SJg??nrhLD&gxp3xy$sL-4PAo%Jy#ExRB7O z=;0$qjm{X8nUz1WVA9l@TDfkqtzNM^URk~7t+ngczrESpxqbJc!$*#v{qo#bm#=+y z{YJT7aoKFWVc`)22kRh)+mNN=`{lyd%r-RrS+&|N#FSadQUV85ii(Z)Lojir=Xgp25sf#I^mi%JG^u!s( zDK90>ESWVseojKEiRVofW{c67zTjnHp|OhRCDS|~Hp#}|yCp#v&7R6cXN{zpHl6qjc~w zO^^60c+l0=&Y0pK8ex^M=H}##Nny8TJxiRbRvFNpBGyahfGMdJrec2&I#rk3Y$`7F z3(;I+n&saXPvL;~aj>kJao}0*@fbZkzslsVHh?CDCI!(X(?pugej#l5uqHea4dM%e z66;^_hK+3V6gr(^gLi|QA=uPf$*Pr>xFn@o>U_uL?(_Iqi|;ZmzHivZr&D84a(X5? z1Iyk=+z&g+B=nU9kANsdi(Vlc;w};)px&M>h$e%Kt=8c|UIN$CZ z!@_0y!zDj4-1!TP&S_4&%h7q>Ck6S(A!oZEoOf^keleoobaeyEEu6&wVy4H$NJL0wCxjOH9R5gJdlX z9-cinZ~gdFxgaZx>}5{7U86Y^vM-}R96L}lK^}Mp*ntZ)ffle9w1UlG3)l+UKs(q4 zy1`zs9~=aqg2UhhxCE|&+u$zv6A~B+<6$C9hN+N;1~?Lqf*Eiud>$6TX>d9$fpee< zmct5I2baSY@HO}bd=svLYvFph5pIHQa3|aYyWw8AA0C9a;I9ax5Htj(pbRtx%|SA9 zqZYIdwW7^v3)+g>P&@LX?Pv$ug}Trl^bz_P?L!C9C+HA5f{vlj&>3_I^`PtM4!Vo( zqu(*YAvhYxV;+yhId}rL;zhU?*I^r0umd}>hTV86Zp2Nv8B^@REqEn<9k0Tx@h04c z+wpFE03XID@#pv~zJjmf+xR~I13$oj<9`Ssh!8S>gpw!{N0Lbz(Gw#{Ck12%5s5+^ z#7Q*bCQC^pX(G*p5)Wx1Ye*}3k9f%ra-5tXC&?*tnw%kL$vJX?TqKuCFS$W}Cclt- zP%{{=8& BT4?|P literal 0 HcmV?d00001 diff --git a/Shitty Volume Switcher/AppDelegate.swift b/Shitty Volume Switcher/AppDelegate.swift new file mode 100644 index 0000000..918bc71 --- /dev/null +++ b/Shitty Volume Switcher/AppDelegate.swift @@ -0,0 +1,41 @@ +// +// AppDelegate.swift +// Shitty Volume Switcher +// +// Created by Max Hunt on 28/11/2019. +// Copyright © 2019 smt. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // 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. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // 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. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // 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. + } + + +} + diff --git a/Shitty Volume Switcher/Assets.xcassets/AppIcon.appiconset/Contents.json b/Shitty Volume Switcher/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/Shitty Volume Switcher/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Shitty Volume Switcher/Assets.xcassets/Contents.json b/Shitty Volume Switcher/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Shitty Volume Switcher/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Shitty Volume Switcher/Base.lproj/LaunchScreen.storyboard b/Shitty Volume Switcher/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/Shitty Volume Switcher/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Shitty Volume Switcher/Base.lproj/Main.storyboard b/Shitty Volume Switcher/Base.lproj/Main.storyboard new file mode 100644 index 0000000..2cc971a --- /dev/null +++ b/Shitty Volume Switcher/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Shitty Volume Switcher/GameScene.sks b/Shitty Volume Switcher/GameScene.sks new file mode 100644 index 0000000000000000000000000000000000000000..4fe4d9f41e763cb136277f8a00e3f7ce3ea3daa1 GIT binary patch literal 4694 zcmaJ^3wYerl|Fa$7|lo;PvShu%a1@pVjJ6u^P(Y+?cf9_#&~Rx?buf38F{Qk9!(^T z<4JIH1A&yLS(-w(gnliFle8a8Da%r5fwFxBwxyI(l7>EDLzdEokFt=DWg$QcdnApG z!*;9hlXP`-&%O7Y^WXoR+n+IX+o`PlEf5F*11xaBliSHxIu{OWmaUuV&V^?GHZ9@U zT?Vy{z(;TqJ|RE|2@sx?lL}Hzib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HcmV?d00001 diff --git a/Shitty Volume Switcher/GameScene.swift b/Shitty Volume Switcher/GameScene.swift new file mode 100644 index 0000000..2ad72f4 --- /dev/null +++ b/Shitty Volume Switcher/GameScene.swift @@ -0,0 +1,89 @@ +// +// GameScene.swift +// Shitty Volume Switcher +// +// Created by Max Hunt on 28/11/2019. +// Copyright © 2019 smt. All rights reserved. +// + +import SpriteKit +import GameplayKit + +class GameScene: SKScene { + + private var label : SKLabelNode? + private var spinnyNode : SKShapeNode? + + override func didMove(to view: SKView) { + + // Get label node from scene and store it for use later + self.label = self.childNode(withName: "//helloLabel") as? SKLabelNode + if let label = self.label { + label.alpha = 0.0 + label.run(SKAction.fadeIn(withDuration: 2.0)) + } + + // Create shape node to use during mouse interaction + let w = (self.size.width + self.size.height) * 0.05 + self.spinnyNode = SKShapeNode.init(rectOf: CGSize.init(width: w, height: w), cornerRadius: w * 0.3) + + if let spinnyNode = self.spinnyNode { + spinnyNode.lineWidth = 2.5 + + spinnyNode.run(SKAction.repeatForever(SKAction.rotate(byAngle: CGFloat(Double.pi), duration: 1))) + spinnyNode.run(SKAction.sequence([SKAction.wait(forDuration: 0.5), + SKAction.fadeOut(withDuration: 0.5), + SKAction.removeFromParent()])) + } + } + + + func touchDown(atPoint pos : CGPoint) { + if let n = self.spinnyNode?.copy() as! SKShapeNode? { + n.position = pos + n.strokeColor = SKColor.green + self.addChild(n) + } + } + + func touchMoved(toPoint pos : CGPoint) { + if let n = self.spinnyNode?.copy() as! SKShapeNode? { + n.position = pos + n.strokeColor = SKColor.blue + self.addChild(n) + } + } + + func touchUp(atPoint pos : CGPoint) { + if let n = self.spinnyNode?.copy() as! SKShapeNode? { + n.position = pos + n.strokeColor = SKColor.red + self.addChild(n) + } + } + + override func touchesBegan(_ touches: Set, with event: UIEvent?) { + if let label = self.label { + label.run(SKAction.init(named: "Pulse")!, withKey: "fadeInOut") + } + + for t in touches { self.touchDown(atPoint: t.location(in: self)) } + } + + override func touchesMoved(_ touches: Set, with event: UIEvent?) { + for t in touches { self.touchMoved(toPoint: t.location(in: self)) } + } + + override func touchesEnded(_ touches: Set, with event: UIEvent?) { + for t in touches { self.touchUp(atPoint: t.location(in: self)) } + } + + override func touchesCancelled(_ touches: Set, with event: UIEvent?) { + for t in touches { self.touchUp(atPoint: t.location(in: self)) } + } + + + override func update(_ currentTime: TimeInterval) { + // Called before each frame is rendered + } +} diff --git a/Shitty Volume Switcher/GameViewController.swift b/Shitty Volume Switcher/GameViewController.swift new file mode 100644 index 0000000..2bf6868 --- /dev/null +++ b/Shitty Volume Switcher/GameViewController.swift @@ -0,0 +1,50 @@ +// +// GameViewController.swift +// Shitty Volume Switcher +// +// Created by Max Hunt on 28/11/2019. +// Copyright © 2019 smt. All rights reserved. +// + +import UIKit +import SpriteKit +import GameplayKit + +class GameViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + if let view = self.view as! SKView? { + // Load the SKScene from 'GameScene.sks' + if let scene = SKScene(fileNamed: "GameScene") { + // Set the scale mode to scale to fit the window + scene.scaleMode = .aspectFill + + // Present the scene + view.presentScene(scene) + } + + view.ignoresSiblingOrder = true + + view.showsFPS = true + view.showsNodeCount = true + } + } + + override var shouldAutorotate: Bool { + return true + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + if UIDevice.current.userInterfaceIdiom == .phone { + return .allButUpsideDown + } else { + return .all + } + } + + override var prefersStatusBarHidden: Bool { + return true + } +} diff --git a/Shitty Volume Switcher/Info.plist b/Shitty Volume Switcher/Info.plist new file mode 100644 index 0000000..870f784 --- /dev/null +++ b/Shitty Volume Switcher/Info.plist @@ -0,0 +1,47 @@ + + + + + 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 + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + +