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
26 changes: 26 additions & 0 deletions Questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Questions: Sprites Project

**Why do we use version control? Under what circumstances would you need version control features and why?**
Version control provides a safety net for the code being developed. It also facilities collaboration of a team of developers.
Lastly, it contributes to the progression of the development project by allowing developers to write and apply new code to a
copy of the stable code before merging it to the completed portion of the project.

**What are the navigator, editor, and inspectors areas in Xcode? What are their roles and how do you use them?**
Navigator area: There are several navigators in the navigator ares. The individual navigators keep the various components and tasks that are used in a project organized.

Editor area: There are actually several editors in Xcode. The editor button area is located in the upper right margin of the
Xcode window. There are three default editors that are configured in the editor area:
The standard source editor is where the source code is written.
The assistance editor that contains information related to the source code.

Inspectors area: This area is on the far right of the workspace window contains the inspectors area. The various inspectors are accessed by selecting the appropriate icon on the inspector bar. The inspector allows editing/setting of object attributes.

**How do you center a view in Interface Builder? How do you stretch one?**
The view is centered in the Interface Builder by opening the alignment constraint settings (the barchart) and
clicking/selecting the horizontal and vertical constraints.

To stretch the view use TIE fighter and set all four of the constraint fields to 0.


**What is SpriteKit and why do people use it?**
A SpriteKit is an iOS framework used to make 2D games. It facilitates the animation of sprite images.
343 changes: 343 additions & 0 deletions Sprites/Sprites.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
3774BC2F219B6EE800A5B24C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3774BC2E219B6EE800A5B24C /* AppDelegate.swift */; };
3774BC31219B6EE800A5B24C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3774BC30219B6EE800A5B24C /* ViewController.swift */; };
3774BC34219B6EE800A5B24C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3774BC32219B6EE800A5B24C /* Main.storyboard */; };
3774BC36219B6EE900A5B24C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3774BC35219B6EE900A5B24C /* Assets.xcassets */; };
3774BC39219B6EE900A5B24C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3774BC37219B6EE900A5B24C /* LaunchScreen.storyboard */; };
3774BC41219B6FF800A5B24C /* CustomScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3774BC40219B6FF800A5B24C /* CustomScene.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
3774BC2B219B6EE800A5B24C /* Sprites.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sprites.app; sourceTree = BUILT_PRODUCTS_DIR; };
3774BC2E219B6EE800A5B24C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3774BC30219B6EE800A5B24C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
3774BC33219B6EE800A5B24C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3774BC35219B6EE900A5B24C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3774BC38219B6EE900A5B24C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3774BC3A219B6EE900A5B24C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3774BC40219B6FF800A5B24C /* CustomScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomScene.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3774BC28219B6EE800A5B24C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3774BC22219B6EE800A5B24C = {
isa = PBXGroup;
children = (
3774BC2D219B6EE800A5B24C /* Sprites */,
3774BC2C219B6EE800A5B24C /* Products */,
);
sourceTree = "<group>";
};
3774BC2C219B6EE800A5B24C /* Products */ = {
isa = PBXGroup;
children = (
3774BC2B219B6EE800A5B24C /* Sprites.app */,
);
name = Products;
sourceTree = "<group>";
};
3774BC2D219B6EE800A5B24C /* Sprites */ = {
isa = PBXGroup;
children = (
3774BC2E219B6EE800A5B24C /* AppDelegate.swift */,
3774BC30219B6EE800A5B24C /* ViewController.swift */,
3774BC32219B6EE800A5B24C /* Main.storyboard */,
3774BC40219B6FF800A5B24C /* CustomScene.swift */,
3774BC35219B6EE900A5B24C /* Assets.xcassets */,
3774BC37219B6EE900A5B24C /* LaunchScreen.storyboard */,
3774BC3A219B6EE900A5B24C /* Info.plist */,
);
path = Sprites;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
3774BC2A219B6EE800A5B24C /* Sprites */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3774BC3D219B6EE900A5B24C /* Build configuration list for PBXNativeTarget "Sprites" */;
buildPhases = (
3774BC27219B6EE800A5B24C /* Sources */,
3774BC28219B6EE800A5B24C /* Frameworks */,
3774BC29219B6EE800A5B24C /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = Sprites;
productName = Sprites;
productReference = 3774BC2B219B6EE800A5B24C /* Sprites.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3774BC23219B6EE800A5B24C /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1000;
LastUpgradeCheck = 1000;
ORGANIZATIONNAME = "Sameera Leola";
TargetAttributes = {
3774BC2A219B6EE800A5B24C = {
CreatedOnToolsVersion = 10.0;
};
};
};
buildConfigurationList = 3774BC26219B6EE800A5B24C /* Build configuration list for PBXProject "Sprites" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3774BC22219B6EE800A5B24C;
productRefGroup = 3774BC2C219B6EE800A5B24C /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3774BC2A219B6EE800A5B24C /* Sprites */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
3774BC29219B6EE800A5B24C /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3774BC39219B6EE900A5B24C /* LaunchScreen.storyboard in Resources */,
3774BC36219B6EE900A5B24C /* Assets.xcassets in Resources */,
3774BC34219B6EE800A5B24C /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
3774BC27219B6EE800A5B24C /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3774BC31219B6EE800A5B24C /* ViewController.swift in Sources */,
3774BC2F219B6EE800A5B24C /* AppDelegate.swift in Sources */,
3774BC41219B6FF800A5B24C /* CustomScene.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
3774BC32219B6EE800A5B24C /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
3774BC33219B6EE800A5B24C /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
3774BC37219B6EE900A5B24C /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
3774BC38219B6EE900A5B24C /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
3774BC3B219B6EE900A5B24C /* 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.0;
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;
};
3774BC3C219B6EE900A5B24C /* 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.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
3774BC3E219B6EE900A5B24C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Sprites/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sameeraleola.Sprites;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
3774BC3F219B6EE900A5B24C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Sprites/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sameeraleola.Sprites;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3774BC26219B6EE800A5B24C /* Build configuration list for PBXProject "Sprites" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3774BC3B219B6EE900A5B24C /* Debug */,
3774BC3C219B6EE900A5B24C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3774BC3D219B6EE900A5B24C /* Build configuration list for PBXNativeTarget "Sprites" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3774BC3E219B6EE900A5B24C /* Debug */,
3774BC3F219B6EE900A5B24C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 3774BC23219B6EE800A5B24C /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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>
Loading