O'Reilly logo

iOS Game Programming Cookbook by Bhanu Birani, Chhavi Vaishnav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing a mini game using SpriteKit

Now you have learned enough about SpriteKit. To explore this in more depth, let's create a mini game that will help you to understand the concepts in much more detail. We are going to create an AntKilling game. In this game, we will place an ant on the screen; the ant will animate when you click on it.

Getting ready

We will use the project we created in the previous section. To create a mini game, we will have to update the source files we have got with the starter project. Now it's time to update AKMyScene to hold our ant sprites.

Before getting into the steps to update the code, download all the resources for this chapter and check for the assets folder, which has all the images used in this project.

How to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required