In this tutorial we are gonna make a basics 2D games with Sprite Kit. You can get the full source code of this tutorial on github.
Start Xcode and select File\New\Project from the main menu. Select the iOS\Application\SpriteKit Game template and click Next.
Enter your game name for Product Name, choose iPhone for devices and leave the Class Prefix blank and click Next
SpriteKit Physics and Collision Detection
SpriteKit comes with Physics engine built-in. Which helps in simulating realistic movements and collision detection.
We are going to use SpriteKit physics engine to move our spaceship and detect the collision between spaceship and missile.
View original post 1,112 more words