Search Results for: cocos2d iphone tutorial

Where can I find a good Cocos2d iPhone tutorial?

Rating: +1

Positive Negative

I've been reading your site for awhile, and I know you talk about Cocos2D alot, but I need to know where i can find a good Cocos2D iPhone tutorial. I only saw the python ones

There are many good Cocos2D iPhone tutorials. The examples that come within Cocos2D are excellent tutorials in themselves, and I would suggest that before you go looking for anything else that you try to understand as much of those tutorials as possible. They are well laid out, and my suggestion would be to put the Cocos2D documentation on one side, and go through the example line by line and when you find a line you don't understand right away to enter a comment about exactly what it does in plain English. You will be able to pick up quickly on the engine by doing this.

That being said there are other resources you can search for cocos2d iPhone tutorial on this site to bring up a number of relevant pages. I would also suggest looking at this Cocos2D iPhone game engine resources page.

Cocos2d-X Examples Collection Ported From Popular Cocos2D-iPhone Tutorials

I’ve mentioned the terrific Cocos2D-iPhone fork, the Cocos2D-X cross platform game engine that utilizes C++.   Cocos2D-X currently supports the iOS, Android, Windows, and Marmalade platforms.

I’ve also pointed to some Cocos2D tutorial examples that have been ported from Cocos2D-iPhone to Cocos2D-X.

If you are interested in some in-depth Cocos2D game development training please take this survey. I will be getting together with a successful Cocos2D expert and putting together a training course, and we will be giving out some free copies to those who fill in the survey. You can get to the survey by clicking here.

This set of examples has grown significantly recently adding a conversion of the Angry Birds like game tutorial for Cocos2D-iPhone along with a Space Invaders game and a number of other examples.

The examples are from Clawoo, and you can find all the different examples on Clawoo’s Github page here:
https://github.com/clawoo/AsteroidsCocos2D-x

Looking through these examples should be a great help if you’re looking to convert a game from Cocos2D-iPhone to Cocos2d-X.

Tutorial: Using Cocos2D iPhone and Box2D To Easily Create A Platform Game

Box2D is a great physics engine, but while there are some iOS code examples out there – there really aren’t too many tutorials around utilizing the iOS platform that also demonstrate the fundamental principles used by the engine.

I’ve found one tutorial that does a great job of explaining some of the more intermediate Box2D tutorial topics utilizing Cocos2D iPhone – specifically addressing Forces, Ray Casts and Sensors.  I previously mentioned the first part of this tutorial which was created using LevelHelper and SpriteHelper (which are not required for this portion of the tutorial).

The tutorial demonstrates the creation of a Kid Icarus style platform game, and utilizes sensors and ray casts so the enemies can attack the game character with intelligence, and applies forces to keep the enemies floating in the air.  The tutorial also demonstrates how to create a HUD overlay in Cocos2D for the game menu, and life tracker.

Here’s a video demonstrating the tutorial in action:

You can find the tutorial in 3 parts here – full source code is provided so you can jump right to the second part if desired:
Pt.1 How To Use SpriteHelper And LevelHelper
Pt.2 Intermediate Box2D Physics
Pt 3. How To Create A HUD Layer With Cocos2D 

Overall, I think it’s a great tutorial on building a platformer.   Personally I really never thought of using Box2D for some of the functionality it’s used for in the tutorial, but it definitely makes things easier once you have a basic understanding.

Box2D iPhone Physics Tutorial – No Cocos2D Required

Box2D is a full-featured open source physics engine that has been used in many iPhone and iPad games.  It is often used with the excellent Cocos2D graphics engine.

Oliver Drobnik has created an excellent example of using Box2D with the UIKit.  This is a great example for those who are not familiar with, or don’t have any interest in using Cocos 2D.

[Source: Dr. Touch]

Cocos2D Inspired UIKit Library Allowing You To Easily Render Tilemaps And Movable Sprites

I’ve mentioned the Tiled tool for making game tilemaps with the TMX tile format, and the Texture Packer tool for creating spritesheets which are commonly used with the Cocos2D game engine.

Here’s a library from Moshe Berman providing a simple graphics engine for tile based games allowing you to render TMX maps, and sprites along with other handy features such as virtual controls and game state management.

As the readme state:

– Load maps: MBTileParser is actually the name of a class in the engine. You can load TMX files. Use the MBMapViewController class for this.
– Load sprites: You can load sprites using MBSpriteView. MBMovableSpriteView supports movement too.
– Display Dialog: Load and parse dialog trees, using MBDialogTree. (Support for end actions is now implemented.)
– Take Input: Create custom virtual game controls, using the MBJoystick and MBControllerButton classes. You can also use the included layout.
– Manage Games State: The latest update includes state support (in progress) which allows you to track levels, stamina, score, items, dialog, and more.

Here are a couple of images from the readme showing MBTileParser in action:

MBTileParser

And a video:

You can find MBTileParser on Github here.

A great library if you’re looking to create games with UIKit.

Get Updates By E-mail