GithubHelp home page GithubHelp logo

bellyabc123 / angrychipmunks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slembcke/angrychipmunks

0.0 2.0 0.0 3.88 MB

A simple Cocos2D/ChipmunkPro example project.

License: MIT License

angrychipmunks's Introduction

Angry Chipmunks

Screenshot

Angry Chipmunks is a simple game that will show you how easy it is to use Chipmunk to painlessly add physics to your Cocos2D game. Feel free to reuse any of this code in your own projects.

In this example you will see how to:

  • Create a GameObject class to help bind Cocos2D sprites and physics objects together and easily manange them.
  • Use the integrated CCDebugNode and CCPhysicsSprite classes.
  • Use the ChipmunkObject protocol to easily manage composite physics objects.
  • Use collision handlers to recieve collision events from the physics system.
  • Create breakable physics objects.
  • Use layers to put physics objects inside of each other.
  • Estimate the path of an object and where and when it will first collide with something.

The game rules are simple enough. You have a pile of boxes and a golden box on top. You lose if you break the golden box, and win if you can get it onto the ground without breaking it. To get it to the ground, you shoot cages with angry chipmunks inside of them at the boxes in order to break them.

Why are the Chipmunks in cages and why are they angry? Well, because I spent more time coming up with a list of features the example code would show than I did on it's premise. :p

Chipmunk (the C-API) is free and open source software. Chipmunk Pro (including the Objective-C binding and optimized solver) is what we've built on top of Chipmunk. Chipmunk Pro can help you save a lot of time as it plugs into the usual Objective C memory model and familiar APIs. It even works seemlessly with ARC. You can learn more here: http://chipmunk-physics.net/chipmunkPro.php

angrychipmunks's People

Contributors

slembcke avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.