Here is some iOS code that allows you to generate your own terrain in a 2d iPhone side-scrolling style game by simply dragging your finger up and down. The possible potential uses are endless. This code uses Cocos2D.

(more…)
Here is some iOS code that allows you to generate your own terrain in a 2d iPhone side-scrolling style game by simply dragging your finger up and down. The possible potential uses are endless. This code uses Cocos2D.

Ask any developer of fast-paced iPhone games what language they use and none will say Objective-C. I am not referring to card games, or simple games like SpaceBubble. I am talking about processor intensive, special effects, things flying at you from all angles, kind of games. Of course every iPhone game has to use SOME Objective-C to get the app up and running and for certain API calls, but those kinds of things should not take up more than a few hundred lines of code at most in a large game.
(more…)
I have updated the source code syntax highlighting on this site. It now more accurately resembles Xcode’s syntax highlighting.
To post comments with code, please use the following tags around your code: (more…)
With the arrival of iAd came a way for developers to produce free apps and still pay the necessary development expenses. Some have seen huge success, but with questionable fill rates to see profit worth your time you will need an app with a steady 1,000+ a day download rate which is pretty hard to achieve in the App Store these days.

I will use iStrobe as an example. The first day of release saw about 35 downloads at $0.99 with a quick drop to about 3 downloads a day. Once I made it free I got a rush of about 2,000 downloads with fill rates on ads barely touching double digit percents.

In this tutorial we will expand on the previous Core Location tutorial. Here we will extract specific location attributes such as coordinates, altitude, and speed.

SpaceBubble 1.2 update is now available as a free download in the App Store.
The source code for this version has already been released a week or so ago. If you haven’t yet, grab a copy of the source code here.
Core Location is a powerful yet simple iOS framework allowing easy access to the iPhone’s GPS. You can access the coordinates of the device with GPS or cell triangulation, compass, and direction and speed of travel.
Apple’s description:
The Core Location framework lets you determine the current location or heading associated with a device. The framework uses the available hardware to determine the user’s position and heading. You use the classes and protocols in this framework to configure and schedule the delivery of location and heading events. You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.
In this tutorial you will learn how to access the raw Core Location data, including the iPhone’s GPS coordinates and speed of travel. (more…)
I started to write a tutorial today but got a bit burned out in the process. I will finish it eventually, but here is the code for you to tinker with in the meantime.
The code demonstrates Core Location and makes use of custom protocols. The app updates a UILabel with GPS coordinates and speed of travel. Stay tuned, the tutorial will be finished up shortly!

[Source: CoreLocation GPS Demo - 25k]
I am calling out to all my readers to give some feedback on what kinds of tutorials you would like me to write.
So please, leave a comment!
UPDATE: I have fulfilled one request already. Thanks Philip for the suggestion!
Core Location GPS Tutorial Part 1
Core Location GPS Tutorial Part 2
As I eventually do with just about all my code, I am releasing iStrobe’s innards to the public. It’s yours, take it. Make sure to abide by the rules though.
Download:
iStrobe Source Code for iPhone 4 – 1.4MB
[App Store: Get It Here]

