Posts Tagged ‘2d’
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.
Adding A 2D Hud To A 3D OpenGL ES Scene
Drawing a 2D Hud on a 3D OpenGL ES scene is a common task when developing games.
To do this without any distortion in OpenGL ES you need to draw your HUD through a matrix different from the projection matrix used for 3D objects.
Jeff LaMarche, co-author of Beginning iPhone 3 Development, and More iPhone development has added a new tutorial on Drawing a Hud Display in OpenGL ES.
The Commercial iPhone Game Engine Comparison (3D and 2D)
After making my open source iphone game engine comparison post,, I’ve noticed quite a few searches for a comparison of commercial iPhone game engines, so I’ve decided to create this comparison.
Please note that this is only a feature comparison, as while I have tested out the editors of these engines (where available for free) I have not thoroughly tested these engines, however that being said I believe I can help in someone making an educated decision for those trying to choose between these engines.
The Open Source iPhone Game Engine Comparison
I’m often asked about which iPhone game engine to use, and I know most people are looking for a free game engine so here is a comparison of the different open source iPhone game engines that actually have apps out there.
Cocos2D for IPhone
The Cocos2D iPhone game engine is a port of a game engine originally created in Python and converted to iPhone Objective-C. As you can tell from the name, Cocos2D is designed for 2D games, that being said, although the engine is in a 2D world, the engine includes a growing collection of high quality 3D special effects.
11 Cocos2D iPhone Game Engine Resources
I mentioned the open source Cocos2D iPhone game engine on my list of iPhone game engines.
For those that don’t know Cocos2D is an open source LGPL licensed 2D game engine for the iPhone that has already been used in many games. Mitch Allen has posted a nice list of resources for the open source Cocos 2D iPhone game engine.
My favorites from the list are:
1. iPhone Dev – Which contains a collection of Cocos 2D tutorials for beginners.