Adding a Sprite using objective-Chipmunk

Official forum for the Chipmunk2D Physics Library.
Post Reply
codger
Posts: 2
Joined: Thu Jun 30, 2011 9:55 pm
Contact:

Adding a Sprite using objective-Chipmunk

Post by codger »

Hi guys just checking out objective-chipmunk prior to purchase but i noticed all the demos do not include the use of sprites merely the collision bodies.

What methods are used to add a sprite in objective chipmunk. I am looking for the equivalent of

[super initWithShape:shape file:@"imageName.png"]

I wanted to add a sprite that simply represented the earth in the planet demo


Thanks in advance

Codger
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Adding a Sprite using objective-Chipmunk

Post by slembcke »

Chipmunk is just a physics library, and doesn't provide any graphics/sprite rendering other than the debug rendering that just draws shape outlines and such.

For graphics, you can use UIKit like in the Snap project which is slow but very easy, Cocos2D which is pretty fast and pretty simple or raw OpenGL which is more work but can be extremely fast.

I'm currently working on creating more tutorials and example content for Chipmunk. If you check back in a week or two I should have some new example projects that show how to write a simple Objective Chipmunk game using Cocos2D or OpenGL.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
codger
Posts: 2
Joined: Thu Jun 30, 2011 9:55 pm
Contact:

Re: Adding a Sprite using objective-Chipmunk

Post by codger »

Thank you for the response I will keep monitoring the forum
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests