Posts Tagged ‘Cocos2D’
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.
Awesome Fun Music-Synced Animation With Video And Code
Found this great tutorial on creating a music synced animation. The dancing effect is created by using a sound meter, and adjusting the size of the animation based on the sound level. The end result looks terrific.
Check out the video:
The author was able to create this effect by using the open source Cocos2D engine for iPhone along with the CocosDenshion sound engine (included with Cocos2D iPhone). It’s a really fun effect, and thanks to the author of the tutorial for providing full source code.
Cocos2D Engine Updated With iPad Development Support
The excellent and free Cocos2D engine has been updated with support for the iPad along with several other improvements.
Specifically the updates include:
- Support for multiple resolutions (so that you can target the 1024×768 iPad resolution)
- Support for newer versions of Chipmunk and Box2D
- A new easier to use camera
- Improved speed
- Much more.. check the changelog
You can check it out here: Cocos2D v0.99.0-rc iPad Compatible