Think you can make better games than all of the crap you see on the app store?  If so, maybe its your time to learn how to make video games that run on your iPhone.  If you make a good enough game, I'll post it on this site in a new section called "Reader's Apps".  Better yet, let me help you get started.

Game programing is vastly different depending on which system you want to design for, while playstation and xbox tend to use the C++ language, iPhone development uses a different language called Objective-C.  Both languages are similar in design but vastly different in syntax.  When I started out at age 15 trying to learn to make video games, I was extremely annoyed with how many tutorials and examples there were on the programming languages but not games.  Most tutorials covered only the raw basics like printing out "records" and "calculations", but offered nothing for making games or drawing content on a screen.  So thats exactly what this is.  I won't go into detail on C, C++ or Objective-C here because it would take forever and take away from the game development aspect.  While you can follow this tutorial without learning to program I do still recommend that if not already, you learn the basics of how to program in C++ and Objective-C before, during, or after reading this tutorial.


To get started with Objective-C on the iPhone, lets dive in to new project that uses OpenGL ES.  Even though it is harder at first, using OpenGL allows us to make the jump from 2D to 3D games later on when we are ready.  If you don't already have it, you'll need to download the latest Xcode from apple.  Once you're ready, open up Xcode and start a new OpenGL ES project like so
Picture
Picture
Once the project appears, click the "build and run" icon.  You'll see something quite boring.  The default OpenGL ES project shows a bouncing square that goes up and down.  We're going to get rid of the stupid square and replace it with our own code.  Before we do that, we're going to make things easier on ourselves, because we don't need to do any advanced stuff that requires OpenGL ES version 2.0, we're going to disable it.  Find the file called EAGLView.m and open it up.  

 
 
Picture
In the words of Shang Tsung from one of the most horrible movies ever made from a video game, Mortal Kombat, "This is a taste of what's to come".  Here's my first post, and it won't be nice.  It's not hard finding an app worthy of destroying.  Pulling up the app store and going to new releases, I've already found a candidate quicker than you can spot a cigarette on the side of a highway.  Alien takeover free has granted us with the its presence, and the audacity to assume it knows us.  Take a look over at the left and read the description

Wow!  Our favorite game is free.  The author of this app has done something amazing.  They've perfected the technology of determining what we like!  Even better, he's found our favorite game and made it free for us!!  It's almost too good to be true.  Of course, in a hurry without even looking at the screenshots, I downloaded the app right away.  Boy was I surprised.  By the time I could figure out what the hell was going on in the game, I was killed.  I might as well have been killed in real life.  Just when I was trying to remove the foot from my ass and play another game, a full-screen ad that I didn't ask for decided to take over my screen.  What a crock.  If this is my "favorite" game then I'd better start re-evaluating my standards.

Game over