iOS indie developers writing every day about their stuff.

Unity 3D iOS apps with JOY(STICK)

Boon Chew

In the last tutorial , we used a joystick to control an iOS space shooter game, I hope you had fun with it. This time around, we are going to use joystick to control a 3D iOS App made in Unity3D. Here is a demo video of the final product. Assumptions You are somewhat familiar with Unity’s GUI. No previously coding experiences in Unity is assumed. You have heard about Arduino. No coding experience in Arduino required. Basic Understanding of Objective-c & iOS application development The Big Picture The idea of this tutorial is to use an Arduino Joystick to […]

iOS Games with Joy(stick)

Boon Chew

Playing games using controllers is nothing new for gamers with iOS devices. The controllers I am referring to are virtual joystick, accelerometer or gyroscope. But let’s face it, playing games with fingers sometimes just doesn’t feel the same without the physical touches of a joystick (there is a reason why we call it JOY stick!). This is something I sometimes miss when I play games on the touch devices. Fortunately, my college education is showing its full value here. Instead of putting up with the restriction, I say we make a real joystick for our iPhone today! Let’s start with […]

The Productive Apple Developer (Part II)

Boon Chew

Code Conventions, Uncrustify and others In the second part of this blog, I will continue to introduce some of my favorite tools for my daily development. The first thing I would like to talk about is coding convention. Check out the first part of the blog if you have missed it. Good coding convention not only makes code much easier to read, it will improve the overall stability (See Broken Window Theory). It will be difficult for me to cover all code styles in one post, so I will use Objective-C as an example. There are two coding conventions in […]

The Productive Apple Developer

Boon Chew

Introduction In this guide, I would like to take the opportunity to introduce some tools and techniques to dramatically improve your productivity as an Mac development. Many of these techniques are something I use on a daily basis and they have helped reduce a lot of repetitive and mundane tasks and make me an ever happier Apple developer. This is called applying the DRY principle from code to OS tasks. For example, if you find yourself renaming multiple files into “duck1.png” and “duck2.png” and so on, something is wrong. We Apple developers should never ever repeat ourselves, since we are […]

Mobile Tape Measure (using IOS + Arduino)

Boon Chew

Goal The goal of this project is to detect the distance between you and the object in a place you can’t see, and display the distance on your iPhone’s display. Usage 1. Measure distance between the sensor and the object in front of it. 2. You can put the device on the back of your car to keep yourself from running into another car when you parallel park. 3. You can put it on your pocket, if someone is too close to your pocket, the alarm will sound. Ultrasonic Ranger I use HC-SR04 as my ultrasonic range finder. It is […]

Getting Started with Corona SDK Development

Boon Chew

  1. Introduction Corona SDK is a powerful platform for cross-platform mobile game development.  As of this writing it currently supports iOS & Android. I’ve been playing Corona for a while and really digging it.  In sprite of the fairly decent official documentations,  beginners can still get confused with topics such as setup, which editor to use, etc.  The goal of this article is to minimize the initial hurdles you may run into and let you be productive with the tool as soon possible. 2. Environment Setup 2.1 Corona SDK Installation The installation of Corona SDK is really simple, you […]

Beta Testing iOS Apps Made Easy

Boon Chew

The success of iOS platform has spurred the creations of third party solutions that make make aspect of iOS development less painful such as in-app purchase, push notifications and backend integration provided by companies like Urban Airship and Parse.  TestFlight is one such service. It was created to help facilitate your beta testing and lets you distribute your beta build over the air – made possible by the wireless app distribution model added in iOS4. Let’s take a quick look at what TestFlight is all about and what they offer.  For a complete overview of the latest and greatest of […]

Useful Xcode 4 Features

Boon Chew

Useful Xcode 4 features you probably seldom use: 1) Modified Navigation Hold down Option key and click a file in the Project Navigator pane.  The file opens up in the assitant editor window. Hold down Command key and double click a file in the Project Navigator pane.  The file opens up in a new window. Hold down Shift + Option key and click a file in the Project Navigator pane.  A coverflow view shows up and you can now use where the file should appear.   2) Show/hide Navigator Command + 0 to show/hide the navigator.  More space for your […]

Dissecting Cocos2D – CCDirector

Boon Chew

Cocos2D is a great open source game framework created by Ricardo Quesada with contributions from its community.  Not only does it save you time in creating 2D-based games for the iOS, a careful reading of the code will make you a better game developer and an iOS coder. In this series, we will dissect Cocos2D a little bit at a time, pick up valuable coding techniques and examine design patterns and decisions utilized by Cocos2D along the way. We will start off by looking at the entry point, the heart of Cocos2D – the CCDirector class.  CCDirector is a singleton […]