Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 8-bit version Brahms - Hungarian Dance No. 5.mp3
Binary file not shown.
Binary file added Duel Of Fates 8-Bit.mp3
Binary file not shown.
Binary file not shown.
Binary file added Metallica - The Four Horsemen (8-bit).mp3
Binary file not shown.
10 changes: 10 additions & 0 deletions TankShebang.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
145A1C5523724421006D8603 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 145A1C5323724421006D8603 /* LaunchScreen.storyboard */; };
145A1C6023724421006D8603 /* TankShebangTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 145A1C5F23724421006D8603 /* TankShebangTests.swift */; };
145A1C6B23724421006D8603 /* TankShebangUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 145A1C6A23724421006D8603 /* TankShebangUITests.swift */; };
72C95286239048FD00EBAF27 /* Menu.sks in Resources */ = {isa = PBXBuildFile; fileRef = 72C95285239048FD00EBAF27 /* Menu.sks */; };
72C9528823904A2A00EBAF27 /* Menu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72C9528723904A2A00EBAF27 /* Menu.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -53,6 +55,8 @@
145A1C6623724421006D8603 /* TankShebangUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TankShebangUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
145A1C6A23724421006D8603 /* TankShebangUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TankShebangUITests.swift; sourceTree = "<group>"; };
145A1C6C23724421006D8603 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
72C95285239048FD00EBAF27 /* Menu.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Menu.sks; sourceTree = "<group>"; };
72C9528723904A2A00EBAF27 /* Menu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Menu.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -112,6 +116,8 @@
145A1C5123724421006D8603 /* Assets.xcassets */,
145A1C5323724421006D8603 /* LaunchScreen.storyboard */,
145A1C5623724421006D8603 /* Info.plist */,
72C95285239048FD00EBAF27 /* Menu.sks */,
72C9528723904A2A00EBAF27 /* Menu.swift */,
);
path = TankShebang;
sourceTree = "<group>";
Expand Down Expand Up @@ -238,6 +244,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
72C95286239048FD00EBAF27 /* Menu.sks in Resources */,
145A1C502372441F006D8603 /* Main.storyboard in Resources */,
145A1C472372441F006D8603 /* GameScene.sks in Resources */,
145A1C5223724421006D8603 /* Assets.xcassets in Resources */,
Expand Down Expand Up @@ -269,6 +276,7 @@
files = (
145A1C4B2372441F006D8603 /* GameScene.swift in Sources */,
145A1C4D2372441F006D8603 /* GameViewController.swift in Sources */,
72C9528823904A2A00EBAF27 /* Menu.swift in Sources */,
145A1C452372441F006D8603 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -444,6 +452,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = TankShebang/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -461,6 +470,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = TankShebang/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
111 changes: 111 additions & 0 deletions TankShebang.xcodeproj/xcshareddata/xcschemes/TankShebang.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1030"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "145A1C402372441F006D8603"
BuildableName = "TankShebang.app"
BlueprintName = "TankShebang"
ReferencedContainer = "container:TankShebang.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "145A1C5A23724421006D8603"
BuildableName = "TankShebangTests.xctest"
BlueprintName = "TankShebangTests"
ReferencedContainer = "container:TankShebang.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "145A1C6523724421006D8603"
BuildableName = "TankShebangUITests.xctest"
BlueprintName = "TankShebangUITests"
ReferencedContainer = "container:TankShebang.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "145A1C402372441F006D8603"
BuildableName = "TankShebang.app"
BlueprintName = "TankShebang"
ReferencedContainer = "container:TankShebang.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 = "145A1C402372441F006D8603"
BuildableName = "TankShebang.app"
BlueprintName = "TankShebang"
ReferencedContainer = "container:TankShebang.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "145A1C402372441F006D8603"
BuildableName = "TankShebang.app"
BlueprintName = "TankShebang"
ReferencedContainer = "container:TankShebang.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "70C78F76-5DE8-4131-8900-E3F98F274E46"
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>SchemeUserState</key>
<dict>
<key>TankShebang.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>SchemeUserState</key>
<dict>
<key>TankShebang.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
96 changes: 96 additions & 0 deletions TankShebang/AdvancedOptionsViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
//
// AdvancedOptionsViewController.swift
// TankShebang
//
// Created by Robert Beit on 12/3/19.
// Copyright © 2019 Sean Cao, Robert Beit, Aryan Aru Agarwal. All rights reserved.
//

import UIKit

class AdvancedOptionsViewController: UIViewController {
var auto = "On"
var power = "On"
var spawn = "On"
var scatter = "On"

@IBOutlet weak var Autobalance: UIButton!

@IBOutlet weak var Powerups: UIButton!

@IBOutlet weak var Fixedspawn: UIButton!

@IBOutlet weak var Scattershot: UIButton!


@IBAction func autobalance(_ sender: Any) {
if(auto == "Off"){
auto = "On"
}
if(auto == "On"){
auto = "Off"
}
Autobalance.setTitle(auto, for: .normal)

}


@IBAction func powerups(_ sender: Any) {
if(power == "Off"){
power = "On"
}
if(power == "On"){
power = "Off"
}
Powerups.setTitle(power, for: .normal)
}

@IBAction func fixedspawn(_ sender: Any) {
if(spawn == "Off"){
spawn = "On"
}
if(spawn == "On"){
spawn = "Off"
}
Fixedspawn.setTitle(spawn, for: .normal)
}

@IBAction func scattershot(_ sender: Any) {
if(scatter == "On"){
scatter = "Off"
}
if(scatter == "Off"){
scatter = "On"
}
Scattershot.setTitle(scatter, for: .normal)

}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
var game_options = segue.destination as! GameOptionsViewController
game_options.AutoBalance = auto
game_options.Powerups = power
game_options.FixedSpawn = spawn
game_options.ScatterShot = scatter

}



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.
}
*/

}
21 changes: 21 additions & 0 deletions TankShebang/Assets.xcassets/DESERT.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "DESERT.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions TankShebang/Assets.xcassets/ICe.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ICe.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file added TankShebang/Assets.xcassets/ICe.imageset/ICe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions TankShebang/Assets.xcassets/Options.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Options.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading