![]() In this tutorial game, the goal is to get 4 balls of the same color to touch. This color matching tutorial is inspired by Crayon Ball. Implement the ChipmunkObject protocol to make it simple to work with composite physics objects.Bind sprites to Chipmunk bodies using the CCPhysicsSprite class.Setup physics for a simple ball object.Use a fixed timestep for better physics quality.Use the CCPhysicsDebugNode class to draw a space.Adding collision handler callbacks to custom process collision events.Create the space and setup some basic properties.Some of the things you'll see in this tutorial. You'll also be helping to support further Chipmunk development! Overview While Objective-Chipmunk is not free like Chipmunk is, the enhanced API will almost certainly save you time and money. You can find out more information on Chipmunk's website. The wrapper tries to do things the Objective-C way, adding useful method variations where it makes sense to do so. Additionally, the wrapper adds many convenience methods for doing common setup tasks as well as helper methods that integrate it with the rest of the Cocoa Touch API. The Chipmunk Object protocol unifies the basic Chipmunk types as well as making it easy to create custom composite collections of the basic types. The primary advantages of a native Objective-C API include integrating with the Cocoa memory management model (including ARC) and the Chipmunk Object protocol. While Chipmunk's C API is pretty easy to use, the Objective-C API is even better. Objective-Chipmunk is an Objective-C wrapper for the Chipmunk Physics Library distributed as part of Chipmunk Pro and Chipmunk Indie. What is Objective-Chipmunk and Chipmunk Pro? Check out Chipmunk's website for more information. I've put thousands of hours of work over many years to make Chipmunk what it is today. This includes a lot of successful games such as Waking Mars, Night Sky, Zombie Smash, Feed Me Oil and many others. For this reason it's been used in hundreds of games on just about every system you could name. It is intended to be fast, portable, numerically stable, and easy to use. What is Chipmunk?Ĭhipmunk is a 2D rigid body physics library distributed under the MIT license. It doesn't go into how Cocos2D itself works, although the project is simple enough you can probably figure it out as you go. This tutorial assumes you have some prior experience with Cocos2D development. It also contains alternate projects using UIKit and regular (non-Pro) Chipmunk. You can download this tutorial and all the project files from the GitHub page. Please send me an email if I've forgotten. TODO: I either haven't made the Chipmunk Basics tutorial yet or forgot to remove this reminder to myself. You might want to read up on some of the documentation or the Chipmunk Basics tutorial on the documentation page. It assumes you know the basics about Chipmunk such as how to create spaces, bodies and shapes. This tutorial shows you how to create a simple color matching game with Chipmunk Pro and Cocos2D 2.1. Chipmunk Game Dynamics Documentation Chipmunk Color Match:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |