Then if you are like a lot of people you are going to want to run the examples next. But if you are new to Xcode you will probably be perplexed as to how to do that.
Even though I’m trying to master 3D game development, I’m also interested in developing 2D games. I’ve been looking at various iPhone game engines and am currently exploring Cocos2D. The thing I like most about it is the price – you can download it for free. See the project page for licensing info.
I’m still exploring the SDK, so don’t have a lot of code to show myself. So to get you started, here are a few links:
The authors of Beginning iPhone Development have released an updated eBook that covers the 3.0 operating system and related SDK. As a previous owner I was allowed to buy the eBook for half off.
From the site you can download a new chapter in PDF format titled “OpenGL ES 2.0 on the iPhone 3G S” which describes what you need to do to compile specifically for the new hardware. The site also contains updated examples ported to the iPhone that you can download and run.
Two things to note about the examples – if you just try to compile and run them without reading the PDF file first you may have a problem. The chapter points out that you need to compile the Common project first in order for things to run.
Second – I had one small problem with the MipMap2D example. The file MipMap2D.c was in the project folder – but for some reason the project link was broken. So I just added the file again and I could compile and run it.