Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Cocos2d Cross-Platform Game Development
  • Table Of Contents Toc
Mastering Cocos2d Cross-Platform Game Development

Mastering Cocos2d Cross-Platform Game Development

By : Alex Ogorek
4.5 (4)
close
close
Mastering Cocos2d Cross-Platform Game Development

Mastering Cocos2d Cross-Platform Game Development

4.5 (4)
By: Alex Ogorek

Overview of this book

If you are a developer who is experienced with Cocos2d and Objective-C, and want to take your game development skills to the next level, this book is going to help you achieve your goal.
Table of Contents (10 chapters)
close
close
9
Index

Learning Swift through Playgrounds


Playgrounds offer a way to test your Swift code quickly and easily without much baggage that usually comes when creating a test project in another language. They're intended as files used for prototyping and quick fiddling with code if you have problems with a small section. They're really easy to use and understand, so let's begin.

Note

The first thing you'll notice about Swift is that there are no semicolons required (except when writing multiple statements on one line, which must be separated by semicolons). That's right—none! They're optional, but the preferred style of writing Swift code is without semicolons.

Also, when coding if statements, loops, switch statements, and so on, you must use curly braces around the block of code that will be run (even if there's only one line of code that will be executed).

Right now, go ahead and open the SwiftSyntax.playground file in the Sample Projects folder included with this book.

Tip

If you cannot open the file within...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Cocos2d Cross-Platform Game Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon