Archive for the ‘iPhone Game Programming’ Category

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]

Share and Enjoy:
  • RSS

Easy And Accurate 2D Collisions

It is a simple process to perform box collisions in Cocoa Touch using the CGRectIntersectsRect function, and while this is easy and provides decent performance it does not make for the most accurate collisions.

A couple of new tutorials have been created featuring techniques for creating more accurate collisions methods.

The first tutorial is from 71 Squared on Collision Detection Methods which has a some nice straightforward functions written in C that you can drop into your code for Circle to Rectangle, and Circle to Circle collisions.

Great Free Tool For Easily Finding Vertex Locations Of 2D Sprites

If you’ve done any  2D action game programming you may have had to go through the tedious process of going through a collection of 2D sprites and finding and recording vertex coordinates around the game objects.

It’s a major hassle to do this by hand, and for me personally it’s things like this that hold me back from doing things, or sometimes taking an easier way out (like using box collisions or spherical collisions just so I don’t have to do this), but it’s a fairly quick process selecting things graphically with this program

How To Create A Breakout Game with Cocos2D and Box2D

An outstanding series of tutorials has been posted on how to use Box2D with Cocos2D,  and creating a simple breakout game using these technologies.

The tutorials are from Ray Wenderlich, and the first thing that you will want to do is check out Intro to Box2D with Cocos2D Tutorial: Bouncing Balls.  In this tutorial you’ll learn how to create a Box2D project, and how to add physical characteristics to 3D objects with Box2D.

Unity iPhone Developer Shares Tips After Developing First Game

Editors Note: Pat from Crawl Space Games was kind enough to share his experience and some tips in creating his first game using Unity 3D for the iPhone.  This will be a great help for those getting started with Unity 3D or trying to decide whether they should use it for iPhone development.