Categories
Featured iPhone Development Resources

Great Cocos2D iOS Example Featuring Common Game Elements

As Cocos2D has increased it’s feature set it has become increasingly difficult to keep up with the many features of the engine. The game has evolved from a simple rendering engine with some timing control into a full-fledged 2D game engine.

 

Fortunately there is an active community and some great examples are available. You can find examples of almost anything.

 

I found this example to be particularly exceptional, as it contains many desired game elements — including:

 

  • CocosDenshion (Cocos2D Audio) Usage
  • Object Rotation
  • Health Bars
  • Spritesheets And Animations

The example is from Ray Wenderlich  the creator of the Space Game Starter Kit and co-author of the Learning Cocos2D book, Steve Oldmeadow, and Victoria Wenderlich and can be found in Cocos2D versions 0.99.4 or higher (download here).

In order to view the example you will need to set the active target, and executable to Cocos Denshion – Tom The Turret.

Make sure to select the iphone simulator — if you can’t find it, hold down the option key when clicking on the pulldown selector where you set the active target and executable that will bring up more options.

Update: Added video to show those with issues running the game in the right simulator how it’s done.

[Source: Ray Wenderlich]

12 replies on “Great Cocos2D iOS Example Featuring Common Game Elements”

I need help.

I downloaded Cocos2D and installed it, but when I run the turret example it loads up in the ipad simulator and looks all messed up. I can’t see the choice to run it in the iphone simulator.

Hi Kristin,

Welcome to the site.

What you are going to need to do is hold down the option key (alt) when you make your choice of which demo to choose. This will give you many more choices to select from including the choice of running Tom The Turret in the iPhone simulator.

Hi Kristin,

Welcome to the site.

What you are going to need to do is hold down the option key (alt) when you make your choice of which demo to choose. This will give you many more choices to select from including the choice of running Tom The Turret in the iPhone simulator.

I need help.

I downloaded Cocos2D and installed it, but when I run the turret example it loads up in the ipad simulator and looks all messed up. I can’t see the choice to run it in the iphone simulator.

I need help.

I downloaded Cocos2D and installed it, but when I run the turret example it loads up in the ipad simulator and looks all messed up. I can’t see the choice to run it in the iphone simulator.

Hi Kristin,

Welcome to the site.

What you are going to need to do is hold down the option key (alt) when you make your choice of which demo to choose. This will give you many more choices to select from including the choice of running Tom The Turret in the iPhone simulator.

Hi John,

welcome to the site.. guess I will need to change how I sign comments if you’re going to be on here.

When using code from any tutorials you will want to read the license, which is usually contained in the header file. You certainly shouldn’t use the same graphics.

You will definitely want to enhance things, and make it look different. I’ve seen one blog owner go ape when people used his tutorial in making their own apps.

While that is a great example of how to program with Cocos2D do you think that really is a good game?

Hi John,

welcome to the site.. guess I will need to change how I sign comments if you’re going to be on here.

When using code from any tutorials you will want to read the license, which is usually contained in the header file. You certainly shouldn’t use the same graphics.

You will definitely want to enhance things, and make it look different. I’ve seen one blog owner go ape when people used his tutorial in making their own apps.

While that is a great example of how to program with Cocos2D do you think that really is a good game?

Can I use this example and turn it into my own game? Will I get into trouble for copying?

Hi John,

welcome to the site.. guess I will need to change how I sign comments if you’re going to be on here.

When using code from any tutorials you will want to read the license, which is usually contained in the header file. You certainly shouldn’t use the same graphics.

You will definitely want to enhance things, and make it look different. I’ve seen one blog owner go ape when people used his tutorial in making their own apps.

While that is a great example of how to program with Cocos2D do you think that really is a good game?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.