-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
game physics and collision detection
- Loading branch information
0 parents
commit ff64a19
Showing
22 changed files
with
844 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,338 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
2C803E121F05AC8C006A1346 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C803E111F05AC8C006A1346 /* AppDelegate.swift */; }; | ||
2C803E141F05AC8C006A1346 /* GameScene.sks in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E131F05AC8C006A1346 /* GameScene.sks */; }; | ||
2C803E161F05AC8C006A1346 /* Actions.sks in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E151F05AC8C006A1346 /* Actions.sks */; }; | ||
2C803E181F05AC8C006A1346 /* GameScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C803E171F05AC8C006A1346 /* GameScene.swift */; }; | ||
2C803E1A1F05AC8C006A1346 /* GameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C803E191F05AC8C006A1346 /* GameViewController.swift */; }; | ||
2C803E1D1F05AC8C006A1346 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E1B1F05AC8C006A1346 /* Main.storyboard */; }; | ||
2C803E1F1F05AC8C006A1346 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E1E1F05AC8C006A1346 /* Assets.xcassets */; }; | ||
2C803E221F05AC8C006A1346 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E201F05AC8C006A1346 /* LaunchScreen.storyboard */; }; | ||
2C803E2F1F05AD9A006A1346 /* flappy1.png in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E2A1F05AD9A006A1346 /* flappy1.png */; }; | ||
2C803E301F05AD9A006A1346 /* flappy2.png in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E2B1F05AD9A006A1346 /* flappy2.png */; }; | ||
2C803E311F05AD9A006A1346 /* pipe1.png in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E2C1F05AD9A006A1346 /* pipe1.png */; }; | ||
2C803E321F05AD9A006A1346 /* pipe2.png in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E2D1F05AD9A006A1346 /* pipe2.png */; }; | ||
2C803E341F05BFB7006A1346 /* background.png in Resources */ = {isa = PBXBuildFile; fileRef = 2C803E331F05BFB7006A1346 /* background.png */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
2C803E0E1F05AC8C006A1346 /* Flappy Bird.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flappy Bird.app"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
2C803E111F05AC8C006A1346 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; | ||
2C803E131F05AC8C006A1346 /* GameScene.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = GameScene.sks; sourceTree = "<group>"; }; | ||
2C803E151F05AC8C006A1346 /* Actions.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Actions.sks; sourceTree = "<group>"; }; | ||
2C803E171F05AC8C006A1346 /* GameScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameScene.swift; sourceTree = "<group>"; }; | ||
2C803E191F05AC8C006A1346 /* GameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameViewController.swift; sourceTree = "<group>"; }; | ||
2C803E1C1F05AC8C006A1346 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | ||
2C803E1E1F05AC8C006A1346 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | ||
2C803E211F05AC8C006A1346 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | ||
2C803E231F05AC8C006A1346 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
2C803E2A1F05AD9A006A1346 /* flappy1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flappy1.png; sourceTree = "<group>"; }; | ||
2C803E2B1F05AD9A006A1346 /* flappy2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flappy2.png; sourceTree = "<group>"; }; | ||
2C803E2C1F05AD9A006A1346 /* pipe1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pipe1.png; sourceTree = "<group>"; }; | ||
2C803E2D1F05AD9A006A1346 /* pipe2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pipe2.png; sourceTree = "<group>"; }; | ||
2C803E331F05BFB7006A1346 /* background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = background.png; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
2C803E0B1F05AC8C006A1346 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
2C803E051F05AC8C006A1346 = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C803E101F05AC8C006A1346 /* Flappy Bird */, | ||
2C803E0F1F05AC8C006A1346 /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
2C803E0F1F05AC8C006A1346 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C803E0E1F05AC8C006A1346 /* Flappy Bird.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
2C803E101F05AC8C006A1346 /* Flappy Bird */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C803E111F05AC8C006A1346 /* AppDelegate.swift */, | ||
2C803E131F05AC8C006A1346 /* GameScene.sks */, | ||
2C803E151F05AC8C006A1346 /* Actions.sks */, | ||
2C803E171F05AC8C006A1346 /* GameScene.swift */, | ||
2C803E2A1F05AD9A006A1346 /* flappy1.png */, | ||
2C803E2B1F05AD9A006A1346 /* flappy2.png */, | ||
2C803E331F05BFB7006A1346 /* background.png */, | ||
2C803E2C1F05AD9A006A1346 /* pipe1.png */, | ||
2C803E2D1F05AD9A006A1346 /* pipe2.png */, | ||
2C803E191F05AC8C006A1346 /* GameViewController.swift */, | ||
2C803E1B1F05AC8C006A1346 /* Main.storyboard */, | ||
2C803E1E1F05AC8C006A1346 /* Assets.xcassets */, | ||
2C803E201F05AC8C006A1346 /* LaunchScreen.storyboard */, | ||
2C803E231F05AC8C006A1346 /* Info.plist */, | ||
); | ||
path = "Flappy Bird"; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
2C803E0D1F05AC8C006A1346 /* Flappy Bird */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 2C803E261F05AC8C006A1346 /* Build configuration list for PBXNativeTarget "Flappy Bird" */; | ||
buildPhases = ( | ||
2C803E0A1F05AC8C006A1346 /* Sources */, | ||
2C803E0B1F05AC8C006A1346 /* Frameworks */, | ||
2C803E0C1F05AC8C006A1346 /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = "Flappy Bird"; | ||
productName = "Flappy Bird"; | ||
productReference = 2C803E0E1F05AC8C006A1346 /* Flappy Bird.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
2C803E061F05AC8C006A1346 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastSwiftUpdateCheck = 0830; | ||
LastUpgradeCheck = 0830; | ||
ORGANIZATIONNAME = "Johnson Han"; | ||
TargetAttributes = { | ||
2C803E0D1F05AC8C006A1346 = { | ||
CreatedOnToolsVersion = 8.3; | ||
ProvisioningStyle = Automatic; | ||
}; | ||
}; | ||
}; | ||
buildConfigurationList = 2C803E091F05AC8C006A1346 /* Build configuration list for PBXProject "Flappy Bird" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
Base, | ||
); | ||
mainGroup = 2C803E051F05AC8C006A1346; | ||
productRefGroup = 2C803E0F1F05AC8C006A1346 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
2C803E0D1F05AC8C006A1346 /* Flappy Bird */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
2C803E0C1F05AC8C006A1346 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
2C803E1D1F05AC8C006A1346 /* Main.storyboard in Resources */, | ||
2C803E141F05AC8C006A1346 /* GameScene.sks in Resources */, | ||
2C803E1F1F05AC8C006A1346 /* Assets.xcassets in Resources */, | ||
2C803E321F05AD9A006A1346 /* pipe2.png in Resources */, | ||
2C803E301F05AD9A006A1346 /* flappy2.png in Resources */, | ||
2C803E311F05AD9A006A1346 /* pipe1.png in Resources */, | ||
2C803E2F1F05AD9A006A1346 /* flappy1.png in Resources */, | ||
2C803E221F05AC8C006A1346 /* LaunchScreen.storyboard in Resources */, | ||
2C803E341F05BFB7006A1346 /* background.png in Resources */, | ||
2C803E161F05AC8C006A1346 /* Actions.sks in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
2C803E0A1F05AC8C006A1346 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
2C803E181F05AC8C006A1346 /* GameScene.swift in Sources */, | ||
2C803E1A1F05AC8C006A1346 /* GameViewController.swift in Sources */, | ||
2C803E121F05AC8C006A1346 /* AppDelegate.swift in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
2C803E1B1F05AC8C006A1346 /* Main.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
2C803E1C1F05AC8C006A1346 /* Base */, | ||
); | ||
name = Main.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
2C803E201F05AC8C006A1346 /* LaunchScreen.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
2C803E211F05AC8C006A1346 /* Base */, | ||
); | ||
name = LaunchScreen.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
2C803E241F05AC8C006A1346 /* 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++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
COPY_PHASE_STRIP = NO; | ||
DEBUG_INFORMATION_FORMAT = dwarf; | ||
ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
ENABLE_TESTABILITY = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu99; | ||
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 = 10.3; | ||
MTL_ENABLE_DEBUG_INFO = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
SDKROOT = iphoneos; | ||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
}; | ||
name = Debug; | ||
}; | ||
2C803E251F05AC8C006A1346 /* 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++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; | ||
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 = 10.3; | ||
MTL_ENABLE_DEBUG_INFO = NO; | ||
SDKROOT = iphoneos; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
2C803E271F05AC8C006A1346 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
INFOPLIST_FILE = "Flappy Bird/Info.plist"; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = "com.unisound.Flappy-Bird"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 3.0; | ||
}; | ||
name = Debug; | ||
}; | ||
2C803E281F05AC8C006A1346 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
INFOPLIST_FILE = "Flappy Bird/Info.plist"; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = "com.unisound.Flappy-Bird"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 3.0; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
2C803E091F05AC8C006A1346 /* Build configuration list for PBXProject "Flappy Bird" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
2C803E241F05AC8C006A1346 /* Debug */, | ||
2C803E251F05AC8C006A1346 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
2C803E261F05AC8C006A1346 /* Build configuration list for PBXNativeTarget "Flappy Bird" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
2C803E271F05AC8C006A1346 /* Debug */, | ||
2C803E281F05AC8C006A1346 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 2C803E061F05AC8C006A1346 /* Project object */; | ||
} |
7 changes: 7 additions & 0 deletions
7
Flappy Bird.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+23.3 KB
...odeproj/project.xcworkspace/xcuserdata/johnson.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Oops, something went wrong.