Objective-Chipmunk iPhone tutorial.

Official forum for the Chipmunk2D Physics Library.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Objective-Chipmunk iPhone tutorial.

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
mrTortex
Posts: 51
Joined: Sat Jul 24, 2010 9:38 am
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post by mrTortex »

Thanks, this is a very nice tutorial. :)
Paul10
Posts: 17
Joined: Sat Jul 31, 2010 8:27 am
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post 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?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post by slembcke »

Yes. We are trying to use the money made on Objective-Chipmunk to help fund further development time.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
mobilebros
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post by mobilebros »

Nice, Objective-Chipmunk looks pretty cool, I'm sure cocos2d/chipmunk newbies will especially love it. Good luck with everything.
mrTortex
Posts: 51
Joined: Sat Jul 24, 2010 9:38 am
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post 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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post by slembcke »

No, Chipmunk as included with Cocos2D is just the C API.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
joep
Posts: 1
Joined: Wed Sep 15, 2010 5:49 am
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post 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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Krazy_Dev
Posts: 1
Joined: Wed Dec 01, 2010 5:25 pm
Contact:

Re: Objective-Chipmunk iPhone tutorial.

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests