Objective-C

iOS Game Development Tutorial: Using the Accelerometer with Sparrow 2.0

iPhone_WoodBGwMarbleWe recently answered the question, “How do I access accelerometer data?”.  If you have not read this article or you are not familiar with accessing accelerometer data then please pause here and take a minute to read the article.  In today’s tutorial we will take this new knowledge and apply it to build an app to simulate a ball rolling on a table.  This technique would be used to create a Labyrinth type game.

First we will setup our Xcode […]

iOS Game Development Answers: How do I access accelerometer data?

ne of the most anticipated features in mobile computing throughout all of history has been the iPhone’s accelerometer.  The ability to receive instantaneous data about the linear acceleration changes of a device along the primary axes in three-dimensional space has been revolutionary.  In particular using this input for iOS game development.  Keep reading and we will answer the question:  How do I access accelerometer data in iOS?

In the early days, starting with iOS 2.0, a shared object UIAccelerometer provides accelerometer data. Simply specify to the UIAccelerometer the interval at which you would like to receive events and […]

Migration of HelloWorld iOS game from Sparrow 1.4 to Sparrow 2.0 – Part II

SparrowLogoThis is the second part of a two-part series.  If you have not read part one you can find it here: “Migration of HelloWorld iOS game from Sparrow 1.4 to Sparrow 2.0 – Part I

As a quick recap,  We are migrating Andreas Wålm’s HelloWorld iOS game to Sparrow framework 2.0.  It was originally written using ARC, CocoaPods, Universal, Sparrow 1.4.

Now that we have the new initialization process in place let’s change the Game class.

Change the Game Class

The Game class represents our root game object and is a subclass of

Migration of HelloWorld iOS game from Sparrow 1.4 to Sparrow 2.0 – Part I

SparrowLogoThis is a two-part article.  Be sure to read the second part “Migration of HelloWorld iOS game from Sparrow 1.4 to Sparrow 2.0 – Part II“.

Sparrow is a pretty awesome Free and Open Source game engine for iOS. If you are gearing up to develop a game or just want to start learning game development as a hobby then Sparrow is a great place to start. It is a pure Objective-C library that has […]