Welcome to iPhoneGameTutorials.com! Check out our Tutorials page for a list of everything we've written
so far, and drop by the Forums to let us know what you would like to see written about on the site.

Tag Archive for 'game'

How To Build a Tower Defense Game for the iPhone – Part 5b – More Wave Control

And we are back! Well, wasn’t that fun, we now have a multiple wave game, which we can program to increase in difficulty as we go along. However, there is still one thing nagging at me….. We still have no real control over how many creeps of each type are spawned in a wave, what if we wanted one wave to be completely made up of Red creeps, or Green Creeps. There are a few ways to do this, but I will explain the way that I did it.

Before we get into it, you’ll find things much easier to follow if you’ve already looked at Part5a of this tutorial series – So go there and come back… don’t worry we’ll wait.

Source code after the break…
Continue reading ‘How To Build a Tower Defense Game for the iPhone – Part 5b – More Wave Control’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Want to Help iPhone Game Tutorials?

and… get your game or product some exposure as well? We have hit over 10k uniques this month of people looking for quality game tutorials for the iphone. Unfortunately, for those who have been keeping score… We’re finding it hard to maintain a company and post regular tutorials at the same time :D This is where you come in…

You start by contacting us at info ( a t ) iphonegametutorials ( d o t ) com… Then you build off an existing tutorial on the site or maybe come up with a new tutorial all your own! You get full credit for that tutorial and it will be displayed on iphonegametutorials.com for all to see. We plan on including a side bar of “Contributors” as well, so you’ll get tremendous exposure there as well. I don’t know what could be better for someone trying to show off their chops in the mobile game space or get a little more spotlight on the game they’ve made!
Continue reading ‘Want to Help iPhone Game Tutorials?’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

RPG Style Game for the iPhone – Part 2: Tiled Maps

Update:  Made some modifications to the source code – changed the title music (Hope you enjoy a remix of Dragon Warrior) and expanded the map to give a better idea of how you can use the space.  Also, I added grid lines to the tiles so it didn’t looks so much like a painting.  More parts to come!

It’s been a while since part 1 – we know from your comments that it’s not your favorite thing in the world (it’s not ours either) but we’re gonna try to get going again!

That being said, if you haven’t read part 1 of the tutorial, or the intro describing what we’re working towards, now’s your chance to play catch-up before plunging forward into the next piece of unknown – tile based maps using Tiled!

As will be the case for the rest of the tutorial, we’re using the Cocos2D framework for game development, which already includes support for the TMX file format (we’ll get to that later – just know that it makes our lives easier!). To build the map, we’re going to be using Tiled Qt, a fantastic piece of software that makes creating maps a piece of cake!

Source code after the break!
Continue reading ‘RPG Style Game for the iPhone – Part 2: Tiled Maps’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

RPG Style Game for the iPhone – Part 1: Menus

Menu ScreenshotAnd so the quest to develop an RPG game for the iPhone begins! If you haven’t read up on our initial Cocos2D Menu tutorials before getting started, now is probably a good time! Also if you haven’t seen the outline for this tutorial series, you may want to read that as well to give you an idea of where this is all going. This part of the tutorial will be the primer to get us started – it’s important because it’s the first part of the game that users will see once they start playing. In our example, I’m using some graphics I threw together pretty quickly, so please don’t judge my art and design capabilities harshly :) For this series we’ll continue to use the Cocos2D iPhone framework. Source code after the break!
Continue reading ‘RPG Style Game for the iPhone – Part 1: Menus’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

How To Build a Tower Defense Game for the iPhone

We’ve been doing a lot of simple game mechanics and one of our favorite for a long time has been the tower defense game – So in an effort to do this right, since programming this will take some time, lets talk a little tower defense design and goals.

Tower Defense Description:

  • The enemy starts at one side of a map and travels along a path towards a destination ( usually on the opposite side of the map).
  • You create towers along these paths that fire on the enemy while they pass through. 
Attempt to survive wave after wave of stronger and stronger enemies by upgrading your towers with more powerful abilities.
  • You can either win the game by beating the final wave (usually 20 to 50 waves) or keep going till you lose and there by get bragging rights when you die at wave 97.
Learn Cocos2d - Tower Defense Tutorial for iPhone

A simple tower defense game tutorial for the iphone

There is not a “casual game” that better defines the word casual – The player makes a simple placement of a towers and make small upgrades while the battle unfolds. Who hasn’t played a tower defense game and lost on the 48th level of a 50 level game, because you didn’t plan for multiple types of enemies to attack at the same time.  You can literally spend hours revising tower defense games to see if you can “beat” the game faster, get the most money or just win with the fewest towers.

Continue reading ‘How To Build a Tower Defense Game for the iPhone’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Building a Slide Image Game (Part 2 – With Solution)

Hi Everyone! We’re going to revisit the image sliding tutorial to add one additional feature. We are going to determine whether the puzzle has been solved or not. The task should be fairly straight forward so lets get started right away!

Source code after the break!
Continue reading ‘Building a Slide Image Game (Part 2 – With Solution)’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

How to Save the Game Settings in your iPhone game

If you have any kind of options or preferences menu, you want to make sure that any changes your user makes will carry over from one game session to the next. For example, if your user mutes the Music volume, it’s good practice for that to always be the case, no matter how many times they open or close the app, until he or she unmutes it. So – what’s the best way for saving this info?
Continue reading ‘How to Save the Game Settings in your iPhone game’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Drop Dead – Match 3 Game for the IPhone

We put this game together during Halloween last year, but who’s kidding who, Zombies work whatever time of year it is! It’s called Drop Dead – Check it out now on itunes

What makes this even better – Over the next few weeks, we’ll be posting snippets of the complete game so you can make one of these games yourself!  So stay tuned and in the meantime, if you want to support the blog, pick up the game!

The first thing you might notice when playing the game, looking at the screen grabs, or watching ourDrop Dead YouTube video is that it has the basis in some of the tutorials we have already presented. The match 3 game concept is a great game mechanic and doesn’t take too much time to put together.

The story is this: “In Drop Dead it’s up to you to help our confused hero escape the zombie apocalypse. Match blocks to gain time and ultimately escape from your hungry pursuers. Playing through Story Mode will unlock levels in Endless Hoards mode and Impending Doom mode for hours of re-playability!”

For those who don’t have the spare change – Here is the light version of Drop Dead

Some of the great concepts that we’ll be going over in future tutorials will be these - Drop Dead Game Overview:

  • SplashScreen
  • Loading Screen
  • Menu Page
  • Option Page (w/ slide bars)
  • Mission Page
  • Game (match 3 style game w/ powerups for getting multiple combos)
  • Save States with each level unlocked
  • Saved Scores (top score on each level)
  • Music and Zombie Sound bites

We hope you love the game and keep focus on this blog… We’re gonna be showing some great stuff!

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Building a Slide Image Game

It’s been a week since our last tutorial and in this new tutorial, we’re going to actually tackle a game – A slider game… You know the type of game I’m talking about, the players job is to put a game that is jumbled up, back together again. The great thing about games of this type is that we can use this as our first foray into the world of tile based games.

So what do we need to create this wonderful type of game? Below are a list of steps to make your own tile based slider game:

  1. Create a “Tile” class that has a sprite, a position and a value
  2. Create a manager type class that will create all the tiles and keep track of them
  3. Add touch components that will allow the user to swap tile locations
  4. Add additional image randomizations so there is more variety in the game

That’s it… Sounds simple when written out, huh? Well, we’re going to go through it and show you that it can be simple.

Source Code after the break!
Continue reading ‘Building a Slide Image Game’

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Cocos2d Sprite Tutorial Part 3

So in Part 2 we introduced an animated dragon that had 8 directions of movement and was completely controllable via touching the screen. Isn’t cocos2d awesome! Well today we’re going to do a little more, today we’re going to create some villagers – tons of them in fact. We’ll use the information we’ve gotten so far including loading sprites from a sprite sheet and setting up animations.

Source Code after the break!
Continue reading ‘Cocos2d Sprite Tutorial Part 3′

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter





Switch to our mobile site