Page 1 of 2

Objective-Chipmunk iPhone tutorial.

Posted: Tue Aug 17, 2010 8:03 pm
by slembcke
I've thrown together a simple Objective-Chipmunk tutorial aimed at iPhone developers:
http://files.slembcke.net/chipmunk/tuto ... eChipmunk/

From it's own description:
This tutorial aims to be a bare-bones introduction to using Objective-Chipmunk in an iPhone game. It is very heavily commented and should be easy to follow. Despite containing only 100 or so actual lines of code, it squeezes in an overview of a number of topics:
  • Creating a Chipmunk space to simulate objects in it
  • Creating a bouncing box with friction
  • Controlling gravity using the device's tilt
  • Using collision callbacks to make impact sounds based on how hard objects collide
  • Using collision callbacks to track if an object is sitting on the ground or in the air
  • Using the ChipmunkObject protocol to easily add complex objects to a space
  • Using a CADisplayLink for smooth animation
  • Integrating Chipmunk into a Cocoa Touch UI
I've included it along with the new Objective-Chipmunk API docs in the new Chipmunk 5.3.1 release.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Wed Aug 18, 2010 5:48 am
by mrTortex
Thanks, this is a very nice tutorial. :)

Re: Objective-Chipmunk iPhone tutorial.

Posted: Thu Aug 19, 2010 7:49 am
by Paul10
I think I understand the Objective-Chipmunk pricing...

It's free to code and test within the simulator but we must license it at $200 to use it on our device, right?

Re: Objective-Chipmunk iPhone tutorial.

Posted: Thu Aug 19, 2010 8:24 am
by slembcke
Yes. We are trying to use the money made on Objective-Chipmunk to help fund further development time.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Thu Aug 19, 2010 8:32 pm
by mobilebros
Nice, Objective-Chipmunk looks pretty cool, I'm sure cocos2d/chipmunk newbies will especially love it. Good luck with everything.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Sat Aug 21, 2010 6:47 am
by mrTortex
To further clarify the pricing structure, is Objective-Chipmunk the Chipmunk included with Cocos2d? I'm fairly close to release and need to work out all the legal bits. I'm currently using Cocos2D Chipmunk Template, and SpaceManager.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Sun Aug 22, 2010 6:24 pm
by slembcke
No, Chipmunk as included with Cocos2D is just the C API.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Wed Sep 15, 2010 5:56 am
by joep
Thank you, this was a great head start ! Looking fwd to the cocos2d tutorial, any ETA ?
Also would like to hear more about how you use cocoa touch and IB for rapid prototyping.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Wed Sep 15, 2010 8:42 am
by slembcke
We are just finishing up a big contract right now and we were hoping to get back to Chipmunk in a week or two.

Re: Objective-Chipmunk iPhone tutorial.

Posted: Wed Dec 01, 2010 5:33 pm
by Krazy_Dev
I was interested if any one has posted how to set objective chipmunk up in xcode. Im not sure how to integrate it into my application. What to import ect? If someone could help get me started that would be great. There is no explanation on how to do this with the downloaded project files. I have read the readme files 3 times. Thank you.