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
Adding a Sprite using objective-Chipmunk
-
- Posts: 2
- Joined: Thu Jun 30, 2011 9:55 pm
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Adding a Sprite using objective-Chipmunk
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.
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 2
- Joined: Thu Jun 30, 2011 9:55 pm
- Contact:
Re: Adding a Sprite using objective-Chipmunk
Thank you for the response I will keep monitoring the forum
Who is online
Users browsing this forum: No registered users and 6 guests