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 .DS_Store
Binary file not shown.
22 changes: 22 additions & 0 deletions CustomScene.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// CustomScene.swift
// Sprites
//
// Created by Rob Herold on 11/13/18.
// Copyright © 2018 Rob Herold. All rights reserved.
//

import UIKit
import SpriteKit

class CustomScene: SKScene {
public override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
guard !touches.isEmpty, let touch = touches.first
else { return }

let node = SKShapeNode(circleOfRadius: 8)
node.fillColor = .red
node.position = touch.location(in: self)
addChild(node)
}
}
30 changes: 30 additions & 0 deletions Sprites QandA.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf600
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;\red100\green100\blue100;
}
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;\cssrgb\c100000\c100000\c100000;\cssrgb\c46667\c46667\c46667;
}
\margl1440\margr1440\vieww29040\viewh18500\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\partightenfactor0

\f0\fs36 \cf0 1. Why do we use version control? Under what circumstances would you need version control features and why?\
\
\cf2 We use version control to track changes made to an app or apps. Version control also lets us step forward and backward in the process to access specific versions later if we need to, and \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec4 it allows you to add features to your app without disturbing the original source code.\'a0\cb1 \kerning1\expnd0\expndtw0 \outl0\strokewidth0 It can even be used to compare changes to the code over time.\
\cf0 \
2. What are the navigator, editor, and inspectors areas in Xcode? What are their roles and how do you use them?\
\
The Navigator area is the left-most area in the main Xcode window. It shows the name of the project, its associated .swift files, Main.storyboard, assets and .plists. This area lets us select the pieces of the project that we need to work on.\
\
The Editor area takes up the middle portion of the Xcode window and can show different things including a source editor, a project editor, the Interface Builder, property list (plist) editor, and a rich text editor, depending on what you select in a Navigator toolbar.\
\
The Inspectors area is on the right edge of the main window, and when it\'92s displayed, depending on what\'92s selected on the main storyboard, it allows you to change font sizes, change colors of various elements, align text, precisely resize elements, and so on.\
\
3. How do you center a view in Interface Builder? How do you stretch one?\
\
A view can be centered in Interface Builder by selecting the \'93Align\'94 button and a view can be stretched by using the \'93Add New Constraints\'94 button. Both buttons are in the lower right-hand corner of the Editor area.\
\
4. What is SpriteKit and why do people use it?\
\
SpriteKit is a rendering and animation framework that can be used to build 2D sprite-based games and game features. It\'92s useful for creating games and apps that need flexibility in how animations are handled.\
}
Loading