Book Image

Mastering Cocos2d Game Development

By : Alex Ogorek
Book Image

Mastering Cocos2d Game Development

By: Alex Ogorek

Overview of this book

Table of Contents (15 chapters)
Mastering Cocos2d Game Development
About the Author
About the Reviewers

Chapter 8. Exploring Swift

In the final chapter of this book, if your heart so desires, you can start learning Swift, Apple's new programming language. Here, you'll get a brief overview of what Swift is, how the language works, and some various syntax differences between Objective-C and Swift. We'll also cover the creation of a few simple apps using Swift.

In this chapter, we will cover the following topics:

  • How Swift works

  • Learning Swift through Playgrounds

  • Using Cocos2d-Swift to create a game in Swift instead of Objective-C


This chapter will not cover most of Swift. It is instead intended as an introduction to coding in Swift through Cocos2d to create a game with this engine.

Also note that Swift, as a language, is only compatible with iOS 7 and above. If you intend to support iOS 6 or prior, you cannot use Swift in your project.