Initial setup for project 17
This commit is contained in:
parent
2adbf38543
commit
7a59423d6e
|
@ -0,0 +1,112 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1010"
|
||||
wasCreatedForAppExtension = "YES"
|
||||
version = "2.0">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B463220288D70007FC7E"
|
||||
BuildableName = "My Sweet HWS Extension.appex"
|
||||
BlueprintName = "My Sweet HWS Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B463220288D70007FC7E"
|
||||
BuildableName = "My Sweet HWS Extension.appex"
|
||||
BlueprintName = "My Sweet HWS Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = ""
|
||||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES"
|
||||
launchAutomaticallySubstyle = "2">
|
||||
<RemoteRunnable
|
||||
runnableDebuggingMode = "1"
|
||||
BundleIdentifier = "com.apple.mobilesafari"
|
||||
RemotePath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app">
|
||||
</RemoteRunnable>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
launchAutomaticallySubstyle = "2">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1010"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "F3A1B44A22027C9E0007FC7E"
|
||||
BuildableName = "Safari Extension.app"
|
||||
BlueprintName = "Safari Extension"
|
||||
ReferencedContainer = "container:Safari Extension.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -0,0 +1,461 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 50;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
F3A1B4842202F9BA0007FC7E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3A1B4832202F9BA0007FC7E /* AppDelegate.swift */; };
|
||||
F3A1B4862202F9BA0007FC7E /* GameScene.sks in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4852202F9BA0007FC7E /* GameScene.sks */; };
|
||||
F3A1B48A2202F9BA0007FC7E /* GameScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3A1B4892202F9BA0007FC7E /* GameScene.swift */; };
|
||||
F3A1B48C2202F9BA0007FC7E /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3A1B48B2202F9BA0007FC7E /* GameViewController.swift */; };
|
||||
F3A1B48F2202F9BA0007FC7E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B48D2202F9BA0007FC7E /* Main.storyboard */; };
|
||||
F3A1B4912202F9BB0007FC7E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4902202F9BB0007FC7E /* Assets.xcassets */; };
|
||||
F3A1B4942202F9BB0007FC7E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4922202F9BB0007FC7E /* LaunchScreen.storyboard */; };
|
||||
F3A1B4B32202FB530007FC7E /* sliceFuse.sks in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B49D2202FB530007FC7E /* sliceFuse.sks */; };
|
||||
F3A1B4B42202FB530007FC7E /* sliceLife@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B49E2202FB530007FC7E /* sliceLife@2x.png */; };
|
||||
F3A1B4B52202FB530007FC7E /* sliceBomb@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B49F2202FB530007FC7E /* sliceBomb@2x.png */; };
|
||||
F3A1B4B62202FB530007FC7E /* sliceBackground.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A02202FB530007FC7E /* sliceBackground.png */; };
|
||||
F3A1B4B72202FB530007FC7E /* sliceLifeGone@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A12202FB530007FC7E /* sliceLifeGone@2x.png */; };
|
||||
F3A1B4B82202FB530007FC7E /* spark.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A22202FB530007FC7E /* spark.png */; };
|
||||
F3A1B4B92202FB530007FC7E /* wrong.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A32202FB530007FC7E /* wrong.caf */; };
|
||||
F3A1B4BA2202FB530007FC7E /* whack.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A42202FB530007FC7E /* whack.caf */; };
|
||||
F3A1B4BB2202FB530007FC7E /* launch.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A52202FB530007FC7E /* launch.caf */; };
|
||||
F3A1B4BC2202FB530007FC7E /* penguin.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A62202FB530007FC7E /* penguin.png */; };
|
||||
F3A1B4BD2202FB530007FC7E /* explosion.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A72202FB530007FC7E /* explosion.caf */; };
|
||||
F3A1B4BE2202FB530007FC7E /* sliceBackground@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A82202FB530007FC7E /* sliceBackground@2x.png */; };
|
||||
F3A1B4BF2202FB530007FC7E /* sliceBomb.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4A92202FB530007FC7E /* sliceBomb.png */; };
|
||||
F3A1B4C02202FB530007FC7E /* sliceLifeGone.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AA2202FB530007FC7E /* sliceLifeGone.png */; };
|
||||
F3A1B4C12202FB530007FC7E /* sliceHitEnemy.sks in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AB2202FB530007FC7E /* sliceHitEnemy.sks */; };
|
||||
F3A1B4C22202FB530007FC7E /* sliceBombFuse.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AC2202FB530007FC7E /* sliceBombFuse.caf */; };
|
||||
F3A1B4C32202FB530007FC7E /* sliceHitBomb.sks in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AD2202FB530007FC7E /* sliceHitBomb.sks */; };
|
||||
F3A1B4C42202FB530007FC7E /* penguin@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AE2202FB530007FC7E /* penguin@2x.png */; };
|
||||
F3A1B4C52202FB530007FC7E /* sliceLife.png in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4AF2202FB530007FC7E /* sliceLife.png */; };
|
||||
F3A1B4C62202FB530007FC7E /* swoosh3.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4B02202FB530007FC7E /* swoosh3.caf */; };
|
||||
F3A1B4C72202FB530007FC7E /* swoosh2.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4B12202FB530007FC7E /* swoosh2.caf */; };
|
||||
F3A1B4C82202FB530007FC7E /* swoosh1.caf in Resources */ = {isa = PBXBuildFile; fileRef = F3A1B4B22202FB530007FC7E /* swoosh1.caf */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
F3A1B4802202F9BA0007FC7E /* Swifty Ninja.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Swifty Ninja.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F3A1B4832202F9BA0007FC7E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
F3A1B4852202F9BA0007FC7E /* GameScene.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = GameScene.sks; sourceTree = "<group>"; };
|
||||
F3A1B4892202F9BA0007FC7E /* GameScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameScene.swift; sourceTree = "<group>"; };
|
||||
F3A1B48B2202F9BA0007FC7E /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = "<group>"; };
|
||||
F3A1B48E2202F9BA0007FC7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
F3A1B4902202F9BB0007FC7E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
F3A1B4932202F9BB0007FC7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
F3A1B4952202F9BB0007FC7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
F3A1B49D2202FB530007FC7E /* sliceFuse.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = sliceFuse.sks; sourceTree = "<group>"; };
|
||||
F3A1B49E2202FB530007FC7E /* sliceLife@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "sliceLife@2x.png"; sourceTree = "<group>"; };
|
||||
F3A1B49F2202FB530007FC7E /* sliceBomb@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "sliceBomb@2x.png"; sourceTree = "<group>"; };
|
||||
F3A1B4A02202FB530007FC7E /* sliceBackground.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sliceBackground.png; sourceTree = "<group>"; };
|
||||
F3A1B4A12202FB530007FC7E /* sliceLifeGone@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "sliceLifeGone@2x.png"; sourceTree = "<group>"; };
|
||||
F3A1B4A22202FB530007FC7E /* spark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = spark.png; sourceTree = "<group>"; };
|
||||
F3A1B4A32202FB530007FC7E /* wrong.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = wrong.caf; sourceTree = "<group>"; };
|
||||
F3A1B4A42202FB530007FC7E /* whack.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = whack.caf; sourceTree = "<group>"; };
|
||||
F3A1B4A52202FB530007FC7E /* launch.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = launch.caf; sourceTree = "<group>"; };
|
||||
F3A1B4A62202FB530007FC7E /* penguin.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = penguin.png; sourceTree = "<group>"; };
|
||||
F3A1B4A72202FB530007FC7E /* explosion.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = explosion.caf; sourceTree = "<group>"; };
|
||||
F3A1B4A82202FB530007FC7E /* sliceBackground@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "sliceBackground@2x.png"; sourceTree = "<group>"; };
|
||||
F3A1B4A92202FB530007FC7E /* sliceBomb.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sliceBomb.png; sourceTree = "<group>"; };
|
||||
F3A1B4AA2202FB530007FC7E /* sliceLifeGone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sliceLifeGone.png; sourceTree = "<group>"; };
|
||||
F3A1B4AB2202FB530007FC7E /* sliceHitEnemy.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = sliceHitEnemy.sks; sourceTree = "<group>"; };
|
||||
F3A1B4AC2202FB530007FC7E /* sliceBombFuse.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = sliceBombFuse.caf; sourceTree = "<group>"; };
|
||||
F3A1B4AD2202FB530007FC7E /* sliceHitBomb.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = sliceHitBomb.sks; sourceTree = "<group>"; };
|
||||
F3A1B4AE2202FB530007FC7E /* penguin@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "penguin@2x.png"; sourceTree = "<group>"; };
|
||||
F3A1B4AF2202FB530007FC7E /* sliceLife.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sliceLife.png; sourceTree = "<group>"; };
|
||||
F3A1B4B02202FB530007FC7E /* swoosh3.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = swoosh3.caf; sourceTree = "<group>"; };
|
||||
F3A1B4B12202FB530007FC7E /* swoosh2.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = swoosh2.caf; sourceTree = "<group>"; };
|
||||
F3A1B4B22202FB530007FC7E /* swoosh1.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = swoosh1.caf; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
F3A1B47D2202F9BA0007FC7E /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
F3A1B4772202F9BA0007FC7E = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B4822202F9BA0007FC7E /* Swifty Ninja */,
|
||||
F3A1B4812202F9BA0007FC7E /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B4812202F9BA0007FC7E /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B4802202F9BA0007FC7E /* Swifty Ninja.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B4822202F9BA0007FC7E /* Swifty Ninja */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B4C92202FB960007FC7E /* Controllers */,
|
||||
F3A1B49B2202FAEB0007FC7E /* SupportFiles */,
|
||||
);
|
||||
path = "Swifty Ninja";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B49B2202FAEB0007FC7E /* SupportFiles */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B4832202F9BA0007FC7E /* AppDelegate.swift */,
|
||||
F3A1B48D2202F9BA0007FC7E /* Main.storyboard */,
|
||||
F3A1B4902202F9BB0007FC7E /* Assets.xcassets */,
|
||||
F3A1B4922202F9BB0007FC7E /* LaunchScreen.storyboard */,
|
||||
F3A1B4952202F9BB0007FC7E /* Info.plist */,
|
||||
F3A1B49C2202FB530007FC7E /* Content */,
|
||||
);
|
||||
path = SupportFiles;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B49C2202FB530007FC7E /* Content */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B49D2202FB530007FC7E /* sliceFuse.sks */,
|
||||
F3A1B49E2202FB530007FC7E /* sliceLife@2x.png */,
|
||||
F3A1B49F2202FB530007FC7E /* sliceBomb@2x.png */,
|
||||
F3A1B4A02202FB530007FC7E /* sliceBackground.png */,
|
||||
F3A1B4A12202FB530007FC7E /* sliceLifeGone@2x.png */,
|
||||
F3A1B4A22202FB530007FC7E /* spark.png */,
|
||||
F3A1B4A32202FB530007FC7E /* wrong.caf */,
|
||||
F3A1B4A42202FB530007FC7E /* whack.caf */,
|
||||
F3A1B4A52202FB530007FC7E /* launch.caf */,
|
||||
F3A1B4A62202FB530007FC7E /* penguin.png */,
|
||||
F3A1B4A72202FB530007FC7E /* explosion.caf */,
|
||||
F3A1B4A82202FB530007FC7E /* sliceBackground@2x.png */,
|
||||
F3A1B4A92202FB530007FC7E /* sliceBomb.png */,
|
||||
F3A1B4AA2202FB530007FC7E /* sliceLifeGone.png */,
|
||||
F3A1B4AB2202FB530007FC7E /* sliceHitEnemy.sks */,
|
||||
F3A1B4AC2202FB530007FC7E /* sliceBombFuse.caf */,
|
||||
F3A1B4AD2202FB530007FC7E /* sliceHitBomb.sks */,
|
||||
F3A1B4AE2202FB530007FC7E /* penguin@2x.png */,
|
||||
F3A1B4AF2202FB530007FC7E /* sliceLife.png */,
|
||||
F3A1B4B02202FB530007FC7E /* swoosh3.caf */,
|
||||
F3A1B4B12202FB530007FC7E /* swoosh2.caf */,
|
||||
F3A1B4B22202FB530007FC7E /* swoosh1.caf */,
|
||||
);
|
||||
path = Content;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B4C92202FB960007FC7E /* Controllers */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F3A1B4852202F9BA0007FC7E /* GameScene.sks */,
|
||||
F3A1B4892202F9BA0007FC7E /* GameScene.swift */,
|
||||
F3A1B48B2202F9BA0007FC7E /* GameViewController.swift */,
|
||||
);
|
||||
path = Controllers;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
F3A1B47F2202F9BA0007FC7E /* Swifty Ninja */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = F3A1B4982202F9BB0007FC7E /* Build configuration list for PBXNativeTarget "Swifty Ninja" */;
|
||||
buildPhases = (
|
||||
F3A1B47C2202F9BA0007FC7E /* Sources */,
|
||||
F3A1B47D2202F9BA0007FC7E /* Frameworks */,
|
||||
F3A1B47E2202F9BA0007FC7E /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = "Swifty Ninja";
|
||||
productName = "Swifty Ninja";
|
||||
productReference = F3A1B4802202F9BA0007FC7E /* Swifty Ninja.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
F3A1B4782202F9BA0007FC7E /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 1010;
|
||||
LastUpgradeCheck = 1010;
|
||||
ORGANIZATIONNAME = "Brian Sipple";
|
||||
TargetAttributes = {
|
||||
F3A1B47F2202F9BA0007FC7E = {
|
||||
CreatedOnToolsVersion = 10.1;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = F3A1B47B2202F9BA0007FC7E /* Build configuration list for PBXProject "Swifty Ninja" */;
|
||||
compatibilityVersion = "Xcode 9.3";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = F3A1B4772202F9BA0007FC7E;
|
||||
productRefGroup = F3A1B4812202F9BA0007FC7E /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
F3A1B47F2202F9BA0007FC7E /* Swifty Ninja */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
F3A1B47E2202F9BA0007FC7E /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F3A1B4C22202FB530007FC7E /* sliceBombFuse.caf in Resources */,
|
||||
F3A1B4C82202FB530007FC7E /* swoosh1.caf in Resources */,
|
||||
F3A1B4BC2202FB530007FC7E /* penguin.png in Resources */,
|
||||
F3A1B48F2202F9BA0007FC7E /* Main.storyboard in Resources */,
|
||||
F3A1B4BF2202FB530007FC7E /* sliceBomb.png in Resources */,
|
||||
F3A1B4BB2202FB530007FC7E /* launch.caf in Resources */,
|
||||
F3A1B4BE2202FB530007FC7E /* sliceBackground@2x.png in Resources */,
|
||||
F3A1B4B72202FB530007FC7E /* sliceLifeGone@2x.png in Resources */,
|
||||
F3A1B4B42202FB530007FC7E /* sliceLife@2x.png in Resources */,
|
||||
F3A1B4862202F9BA0007FC7E /* GameScene.sks in Resources */,
|
||||
F3A1B4B52202FB530007FC7E /* sliceBomb@2x.png in Resources */,
|
||||
F3A1B4C72202FB530007FC7E /* swoosh2.caf in Resources */,
|
||||
F3A1B4C12202FB530007FC7E /* sliceHitEnemy.sks in Resources */,
|
||||
F3A1B4B82202FB530007FC7E /* spark.png in Resources */,
|
||||
F3A1B4B32202FB530007FC7E /* sliceFuse.sks in Resources */,
|
||||
F3A1B4912202F9BB0007FC7E /* Assets.xcassets in Resources */,
|
||||
F3A1B4B62202FB530007FC7E /* sliceBackground.png in Resources */,
|
||||
F3A1B4B92202FB530007FC7E /* wrong.caf in Resources */,
|
||||
F3A1B4BD2202FB530007FC7E /* explosion.caf in Resources */,
|
||||
F3A1B4C62202FB530007FC7E /* swoosh3.caf in Resources */,
|
||||
F3A1B4942202F9BB0007FC7E /* LaunchScreen.storyboard in Resources */,
|
||||
F3A1B4C32202FB530007FC7E /* sliceHitBomb.sks in Resources */,
|
||||
F3A1B4BA2202FB530007FC7E /* whack.caf in Resources */,
|
||||
F3A1B4C52202FB530007FC7E /* sliceLife.png in Resources */,
|
||||
F3A1B4C02202FB530007FC7E /* sliceLifeGone.png in Resources */,
|
||||
F3A1B4C42202FB530007FC7E /* penguin@2x.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
F3A1B47C2202F9BA0007FC7E /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F3A1B48A2202F9BA0007FC7E /* GameScene.swift in Sources */,
|
||||
F3A1B48C2202F9BA0007FC7E /* GameViewController.swift in Sources */,
|
||||
F3A1B4842202F9BA0007FC7E /* AppDelegate.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
F3A1B48D2202F9BA0007FC7E /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
F3A1B48E2202F9BA0007FC7E /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F3A1B4922202F9BB0007FC7E /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
F3A1B4932202F9BB0007FC7E /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
F3A1B4962202F9BB0007FC7E /* 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;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
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 = 12.1;
|
||||
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;
|
||||
};
|
||||
F3A1B4972202F9BB0007FC7E /* 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;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
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 = 12.1;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
F3A1B4992202F9BB0007FC7E /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = QRXXH2RKAG;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/Swifty Ninja/SupportFiles/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "io.sipple.Swifty-Ninja";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 4.2;
|
||||
TARGETED_DEVICE_FAMILY = 2;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
F3A1B49A2202F9BB0007FC7E /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = QRXXH2RKAG;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/Swifty Ninja/SupportFiles/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "io.sipple.Swifty-Ninja";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 4.2;
|
||||
TARGETED_DEVICE_FAMILY = 2;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
F3A1B47B2202F9BA0007FC7E /* Build configuration list for PBXProject "Swifty Ninja" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
F3A1B4962202F9BB0007FC7E /* Debug */,
|
||||
F3A1B4972202F9BB0007FC7E /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
F3A1B4982202F9BB0007FC7E /* Build configuration list for PBXNativeTarget "Swifty Ninja" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
F3A1B4992202F9BB0007FC7E /* Debug */,
|
||||
F3A1B49A2202F9BB0007FC7E /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = F3A1B4782202F9BA0007FC7E /* Project object */;
|
||||
}
|
7
17-swifty-ninja/Swifty Ninja/Swifty Ninja.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
17-swifty-ninja/Swifty Ninja/Swifty Ninja.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:Swifty Ninja.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
|
@ -0,0 +1,116 @@
|
|||
//
|
||||
// GameScene.swift
|
||||
// Swifty Ninja
|
||||
//
|
||||
// Created by Brian Sipple on 1/31/19.
|
||||
// Copyright © 2019 Brian Sipple. All rights reserved.
|
||||
//
|
||||
|
||||
import SpriteKit
|
||||
|
||||
let sceneWidth = 1024.0
|
||||
let sceneHeight = 768.0
|
||||
|
||||
class GameScene: SKScene {
|
||||
var scoreLabel: SKLabelNode!
|
||||
var livesImageNodes = [SKSpriteNode]()
|
||||
var activeSliceBG: SKShapeNode!
|
||||
var activeSliceFG: SKShapeNode!
|
||||
|
||||
|
||||
var remainingLives = 3
|
||||
|
||||
|
||||
var currentScore = 0 {
|
||||
didSet {
|
||||
scoreLabel.text = "Score: \(self.currentScore)"
|
||||
}
|
||||
}
|
||||
|
||||
lazy var sceneCenterPoint = { () -> CGPoint in
|
||||
return CGPoint(x: sceneWidth / 2, y: sceneHeight / 2)
|
||||
}()
|
||||
|
||||
override func didMove(to view: SKView) {
|
||||
setupUI()
|
||||
setupPhysics()
|
||||
}
|
||||
|
||||
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
func setupUI() {
|
||||
createBackground()
|
||||
createScoreLabel()
|
||||
createLivesImages()
|
||||
createSlicesMarks()
|
||||
|
||||
currentScore = 0
|
||||
}
|
||||
|
||||
func createBackground() {
|
||||
let background = SKSpriteNode(imageNamed: "sliceBackground")
|
||||
|
||||
background.position = sceneCenterPoint
|
||||
background.blendMode = .replace
|
||||
background.zPosition = -1
|
||||
|
||||
addChild(background)
|
||||
}
|
||||
|
||||
func createScoreLabel() {
|
||||
scoreLabel = SKLabelNode(fontNamed: "Chalkduster")
|
||||
|
||||
scoreLabel.horizontalAlignmentMode = .left
|
||||
scoreLabel.fontSize = 48
|
||||
scoreLabel.position = CGPoint(x: 8, y: 8)
|
||||
|
||||
addChild(scoreLabel)
|
||||
}
|
||||
|
||||
func createLivesImages() {
|
||||
let startX = sceneWidth - 190.0
|
||||
let distanceFromStartXs = 70
|
||||
|
||||
for i in 0 ..< 3 {
|
||||
let lifeNode = SKSpriteNode(imageNamed: "sliceLife")
|
||||
|
||||
lifeNode.position = CGPoint(x: (Double(i * distanceFromStartXs)) + startX, y: sceneHeight - 48)
|
||||
|
||||
addChild(lifeNode)
|
||||
|
||||
livesImageNodes.append(lifeNode)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Swiping around the screen will lead a glowing trail
|
||||
* of slice marks that fade away when the user lets go or keeps moving.
|
||||
*/
|
||||
func createSlicesMarks() {
|
||||
activeSliceBG = SKShapeNode()
|
||||
activeSliceFG = SKShapeNode()
|
||||
|
||||
activeSliceBG.zPosition = 2
|
||||
activeSliceFG.zPosition = 2
|
||||
|
||||
activeSliceBG.strokeColor = UIColor(red: 1.0, green: 0.9, blue: 0, alpha: 1)
|
||||
activeSliceFG.strokeColor = UIColor.white
|
||||
|
||||
activeSliceBG.lineWidth = 9
|
||||
activeSliceFG.lineWidth = 5
|
||||
|
||||
addChild(activeSliceBG)
|
||||
addChild(activeSliceFG)
|
||||
}
|
||||
|
||||
|
||||
func setupPhysics() {
|
||||
physicsWorld.gravity = CGVector(dx: 0, dy: -6)
|
||||
physicsWorld.speed = 0.85
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
//
|
||||
// GameViewController.swift
|
||||
// Swifty Ninja
|
||||
//
|
||||
// Created by Brian Sipple on 1/31/19.
|
||||
// Copyright © 2019 Brian Sipple. 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
|
||||
}
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
//
|
||||
// AppDelegate.swift
|
||||
// Swifty Ninja
|
||||
//
|
||||
// Created by Brian Sipple on 1/31/19.
|
||||
// Copyright © 2019 Brian Sipple. 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.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
}
|
||||
|
||||
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.
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ application: UIApplication) {
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BV1-FR-VrT">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Game View Controller-->
|
||||
<scene sceneID="tXr-a1-R10">
|
||||
<objects>
|
||||
<viewController id="BV1-FR-VrT" customClass="GameViewController" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" multipleTouchEnabled="YES" contentMode="scaleToFill" id="3se-qz-xqx" customClass="SKView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="4qk-I5-YsI"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="SZV-WD-TEh" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UIStatusBarHidden</key>
|
||||
<true/>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -32,8 +32,8 @@
|
|||
|
||||
| # | Project Name | Topics Learned | Progress |
|
||||
| :--: | :-------------------------: | :------------: | :------: |
|
||||
| 16 | 📱<br>[Safari Extension & JavaScript Injection](/16-safari-extension) | NSExtensionItem, plists (property lists), NSDictionary, NSExtensionJavaScriptPreprocessingResultsKey, UITextView, NSItemProvider, kUTTypePropertyList, keyboard notifications, NSValue, CGRect, CGPoint, CGSize, view.convert, UIEdgeInsets | 🔴 |
|
||||
| 17 | 🎮<br>[Fruity Penguins](/17-fruity-penguins) | SKShapeNode, CGPath, UIBezierPath, AVAudioPlayer, CaseIterable & Custom Enums, Default Method Parameters | 🔴 |
|
||||
| 16 | 📱<br>[Safari Extension & JavaScript Injection](/16-safari-extension) | NSExtensionItem, plists (property lists), NSDictionary, NSExtensionJavaScriptPreprocessingResultsKey, UITextView, NSItemProvider, kUTTypePropertyList, keyboard notifications, NSValue, CGRect, CGPoint, CGSize, view.convert, UIEdgeInsets | ✅ |
|
||||
| 17 | 🎮<br>[Swifty Ninja](/17-swifty-ninja) | SKShapeNode, CGPath, UIBezierPath, AVAudioPlayer, CaseIterable & Custom Enums, Default Method Parameters | 🔴 |
|
||||
| 18 | 🛠<br>[Debugging](/18-debugging) | `print`, `assert`, breakpoints, Visual Debugging | 🔴 |
|
||||
| 19 | 📱<br>[Capital Cities](/19-capital-cities) | MKMapView, MKAnnotation, MKPinAnnotationView, CLLocationCoordinate2D, dequeueReusableAnnotationView() | 🔴 |
|
||||
| 20 | 🎮<br>[Fireworks Night](/20-fireworks-night) | Timer, SKNode, follow(), motionBegan(), prefersStatusBarHidden, Timer.invalidate() | 🔴 |
|
||||
|
|
Loading…
Reference in New Issue