O'Reilly logo

Cocos2d Cross-Platform Game Development Cookbook - Second Edition by Siddharth Shekar

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

Chapter 10. Swift/SpriteBuilder Basics

The recipes we will cover in this chapter are:

  • Implementing the Swift syntax
  • Implementing Cocos2d Swift
  • SpriteBuilder basics

Introduction

To learn Swift, we will use Xcode's Playground. Playground is easy to use and you don't have to create an Xcode project to run your code. Also, the code gets compiled and the results are shown immediately, so you don't have to run each time to see the results of your code.

Additionally, we will also look at SpriteBuilder and discuss how we can add assets and sprites with minimal coding. SpriteBuilder can be used to make a simple prototype in a matter of hours instead of days. We will have the basic introduction to it, which should be sufficient enough for you to build up on your ...

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