toremixer.blogg.se

Chipmunk basic click
Chipmunk basic click








Tell Chipmunk about any forces that are acting upon these objects. Examples: shapes representing animals, flowers, or Muppets. It’s your job to:Īdd objects to this space. Obviously this tutorial is about Chipmunk, so that is what we’ll be using here :] How Does Chipmunk Work?Ĭhipmunk simulates physics behavior in a “virtual Chipmunk space”. There are several differences between Chipmunk and Box2D which Rod and I cover in our upcoming cocos2D book, but suffice it to say that both are great libraries, and you can’t go wrong with either one! It was originally based on Erin Catto‘s Box2D physics library (which also ships with Cocos2D), but has diverged quite a bit since then. With it, you can make objects in your game behave like real life objects – they can be affected by gravity, collide into other objects, bounce around, and much more.Ĭhipmunk was created by Scott Lembcke. So without further ado, let’s dive into Chipmunk! What Is Chipmunk?Ĭhipmunk is a game physics library written in C, that comes as part of Cocos2D. If you are new to these concepts, you might want to review some of the other Cocos2D tutorials on this site first. This Chipmunk Physics tutorial assumes you are already familiar with the basics of Cocos2D, including sprites, actions, spritesheets, and animations. Since I haven’t written a Chipmunk Physics tutorial on this site yet, I thought you guys might enjoy if I converted the workshop slides & demo into tutorial form, for those who were unable to attend (or who want to review it again!) Your job is to tap the bricks that block the way to destroy them, so the cat can land in his bed. It’s about a cat who has had a very rough day and wants to sleep, but there are tons of bricks blocking his way! One of the minigames we made in the workshop was “Cat Nap”, a simple puzzle game using Chipmunk physics. We had an awesome time and really enjoyed meeting those who attended, and hope you guys enjoyed it as much as we did! Recently Rod Strougo and I gave a workshop titled Cocos2D Via Minigames at the Voices That Matter iPhone Conference in Seattle.

chipmunk basic click

Create a simple game with Chipmunk physics!










Chipmunk basic click