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 Sparrow iOS Game Framework Beginner's Guide
  • Table Of Contents Toc
Sparrow iOS Game Framework Beginner's Guide

Sparrow iOS Game Framework Beginner's Guide

By : Stein
4 (1)
close
close
Sparrow iOS Game Framework Beginner's Guide

Sparrow iOS Game Framework Beginner's Guide

4 (1)
By: Stein

Overview of this book

An easy-to-follow guide full of descriptive step-by-step procedures on how to develop a game for iOS. With each topic, a new challenge will be tackled to get a deeper knowledge of the Sparrow game framework and gain the skills to develop a complete mobile experience. This book is aimed at those who have always wanted to create their own games for iOS devices. Perhaps you've already dabbled in game development and want to know how to develop games for the Apple App Store, or maybe you have developed Objective-C apps in the past but you are new to game development. In either case, this book will help with descriptive examples and teach you to develop a game throughout its course. Some experience in Objective-C and a basic understanding of object-oriented programming are required.
Table of Contents (15 chapters)
close
close
13
Afterword
14
Index

Time for action – using the barebone project as a template

Follow these steps to use the barebone project as a template:

  1. Copy the barebone application from samples | barebone to a location of your choice.
  2. Open up the project in Xcode by double-clicking on Barebone.xcodeproj.
  3. Click on the project name in the project navigator to make it editable.
  4. Rename it to PirateGame.
  5. Open the Product menu from the top menu bar.
  6. Select Scheme and Manage Schemes.
  7. Rename the Scheme name from Barebone to PirateGame.
  8. Run the project in the iOS Simulator by hitting the play button. Make sure PirateGame is selected and not Sparrow.
Time for action – using the barebone project as a template

What just happened?

We copied the barebone Sparrow template and used it as a template for our game. We renamed all project and scheme references and ran the template in order to see if everything went ok.

The indication for everything working as expected is when there are no errors while compiling the template and a red rectangle shows up on the screen.

Option 2 – CocoaPods

CocoaPods is a dependency manager for Objective-C projects. It can handle Mac OS X and iOS dependencies alike and is similar to package managers of other systems. It can be compared to what Ruby's package manager RubyGems is to the Ruby platform or what NPM is to Node.js.

CocoaPods needs Ruby and RubyGems to run, which is nothing to worry about, as both come preinstalled on every Mac OS X machine.

Before we begin installing CocoaPods, we need to make sure that the command-line tools are installed.

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.
Sparrow iOS Game Framework Beginner's Guide
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