Archive for April, 2009|Monthly archive page

iPhone Gaming Framework: ObjC Template

Well, everyone… the time has finally come! Yesterday I got an email in my mailbox about a really interesting website that linked to my two blog posts about iPhone development, the Parsing XML files on the iPhone, and the iPhone Gaming Framework tutorials.

Best Universities: 100 free courses tutorials for aspiring iPhone app developers

While looking through the wealth of information on those articles, I found a really neat one.. how to create a project template! This is something I’ve wanted to do for everyone interested in getting started with iPhone game development, but have not had time to really research it on my own.

So, fast forward a few hours, I made a few changes to the ObjC framework and stored it into a template! I would like to first note, that this framework most likely has a few bugs in it. I tried to track down what I could, but I’m sure I didn’t get them all. My current efforts are more directed towards my C++ Djinn Engine, so this project took a back seat, but I felt a lot of people could really use this to jumpstart their efforts.

Anyway, if you choose to use this template, be sure to mail me with your finished projects or development blogs. I always love to see what people are up to! If you’ve used XNA at all, you’ll recognize the Screen Controller and be comfortable with how it works.

If you have any questions, feel free to comment ( so others can help answer and benefit from the questions as well )

How to install the template!
Step 1) Download the zip file located HERE

Step 2) Navigate to ~library/Application Support/Developer/Shared/Xcode/ and create the following folders: Project Templates/iPhone Templates/ .. Your final directory structure should look like ~library/Application Support/Developer/Shared/Xcode/Project Templates/iPhone Templates/

Step 3) Unzip the OpenGL Screen Controller.zip into your iPhone Templates directory. This will add the OpenGL Screen Controller folder and project template. Your new directory structure will look like:
~library/Application Support/Developer/Shared/Xcode/Project Templates/iPhone Templates/OpenGL Screen Controller/(project files here)

Step 4)Open up XCode, create new project, and you’ll see on the left side “User Templates” with a sub-category “iPhone Templates,” clicking on that will bring up your Screen Controller template.

Look at the code, see how its done. Build and run it, and if you click “Level Play” it should transition to a new screen (the gameplay screen) .. click anywhere else in the frame while on the gameplay screen, and it will remove that screen from the screen controller and go back to the title screen. Trace the code, see how it does it, and start playing around.

Twitter

Interested in how things are progressing with the engine? Wanting status updates on what the thought process is behind making the iPhone gaming engine? Follow it on Twitter!

http://www.twitter.com/CraigGiles

Progress on the engine is going to start speeding up now that most of my major C++ projects for classes are complete. We’ll see how things progress after I start getting into the groove of summer coding. :)