Game Development Reference
In-Depth Information
4. Now we will need one AI character on which we will be implementing all our AI
behaviors. So, we will create a new subclass of
SKSpriteNode
with the name
Player
. Go to
File
|
New
|
File
, then select
iOS
|
Source
|
Cocoa Touch
Classes
, and click on
Next
. Now, change the
Subclass of
to
SKSpriteNode
, and
Class
name as
Player
. The final screen should look something similar to the
following screenshot: