MarketingTypo.com

Internet Marketing, Web Analytics, SEO, SEM, and Social Media

Beginner iPhone Action Game Programming Tutorial

Welcome to my iPhone action game tutorial. This is a step by step tutorial for creating an iPhone action game.

You can see the result of a game running the code in the video below:

The graphics are a bit different with the tutorial (as some of those in the video are being used in an actual project) but that is the result of running the actual code within the tutorial.

Specificially the tutorial features:

  • Loading/Placing Images
  • Animation
  • Touch Events
  • Text
  • Sound Effects
  • Background Music
  • Buttons
  • Resetting The Game

Now before we start there are a few pre-requisites. You should have a basic understanding of Objective-C and will need a Mac with the iPhone SDK installed. The game was created using iPhone SDK 4.0, and the Sparrow Framework. Also note that I created this to be as easy to follow as possible so I used a minimum number of classes/methods to make it as easy as possible for a beginner to follow.

In case you’re wondering why I chose to go the route of using the Sparrow Framework it’s because I believe it is the easiest iPhone game development framework available for free for a beginner to start with, and it has already been used in a number of games in the app store.

Please share this tutorial by tweeting it or sharing using one of the buttons at the bottom.  If you have a Dzone account you can vote it up here!

You can navigate through the tutorial by using the page numbers at the bottom of each page.

If you’d like to jump right in you can download a project with all the resources loaded in here.

At the very end of the tutorial you will find the completed project with extensive comments, and at the end of every page you will find a project file that will bring you up to that point of the tutorial.

Otherwise if you’d like to go the route of installing Sparrow, and setting everything up you can visit the Sparrow Framework getting started page here which explains the process of setting up an Xcode project that utilizes the Sparrow Framework. You can get just the game assets (graphics/sound) here.

The tutorial is definitely not perfect, and there are probably some spelling/grammar mistakes, but it is the most extensive single tutorial I’ve seen around and might never be released if I tried to perfect it :)

The first thing we’re going to do is start the game scene by displaying in a background image, adding the score and level text, and playing some music.  Go to page 2 by clicking that number at the bottom of this article to go to that page.

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Uncategorized and have Comments (3)

Great Beginner iPhone And iPad Dev Screencasts

Learning iPhone and iPad development can definitely be difficult, especially if you are not a professional software developer.

I receive e-mails every few days from people who tell me they’ve bought a book or number of books on Amazon or at the local bookstore.  Unfortunately most of the “Beginner” material is meant for experienced developers who are new to the iPhone or iPad platform.

If you’re a real beginner without any program experience you might need to take a step back and look for teachings from a different perspective.

A friend of mine told me about a book that they’d been using by Dr. Rory Lewis, in his book he mentions some screencasts that he has used to help teach students at the University of Colorado.  They look great for the absolute beginner and if you’ve been struggling and just want to get your foot in the door I suggest checking them out. These don’t get into very advanced material, but are very accessible and high quality. You can find the screencasts here.

The book Dr. Lewis mentioned these screencasts in (although he does mention on his website you don’t need to buy it) is available here.

Thanks for reading, if you liked this please share it.

©2010 iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

View full post on iPhone iOS 4 iPad SDK Development Tutorials, Programming Tips, News

Follow MarketingTypo on Twitter

Follow MarketingTypo on Plurk

LinkShare_468x60v2

posted by MarketingTypo in Uncategorized and have No Comments
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
0
0, 0
Max visitors today: 33 at 04:22 am ICT
This month: 124 at 09-01-2010 05:48 pm ICT
This year: 173 at 03-10-2010 08:15 am ICT
All time: 173 at 03-10-2010 08:15 am ICT