Let's start by implementing the skeleton of our game using the SpriteKit game template.
To implement a SpriteKit game, Xcode provides a convenient template, which prepares a project with all the useful settings:
Go to New | Project and select the Game template, as shown in the following screenshot. Click Next:
In the following screen, after filling in all the fields, pay attention and select SpriteKit under Game Technology, like this:
After running the app and touching the screen, you will be delighted by the cute, rotating airplanes.
First of all, let's add CocoaPods
, which is a dependency manager for Objective-C projects; write the following code in Podfile
:
use_frameworks! inhibit_all_warnings! target 'FlappySwift' do pod 'Cartography', :git => "https://github.com/robb/Cartography.git", :tag => '0.6.0' pod 'HTPressableButton', '~> 1.3.2' end
Then, install CocoaPods
by running the pod install
command....