forked from bgulanowski/CCBox2D
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
CCBox2D-Test | ||
============ | ||
|
||
Alpha Testing of CCBox2D pod | ||
|
||
|
||
This project ports across all the c++ sample code for box2d from cocos2d-iphone. | ||
This is a work in progress. | ||
|
||
|
||
In App Delegate | ||
|
||
// switch this to run normal box2d demos | ||
if (0){ | ||
[scene addChild: [MenuLayer menuWithEntryID:0]]; | ||
}else{ | ||
[scene addChild: [[CCBox2DView alloc] initWithEntryID:0]]; | ||
} | ||
|
||
![Alt text](/screenshots/kirbydemo.png "Apply Force demo") | ||
|
||
|
||
Hook into callbacks on touch / start collision / end collision | ||
![Alt text](/screenshots/CCbodysprite.png "Sample Code") | ||
|
||
|
||
|
||
Podfile | ||
============ | ||
platform :ios, '5.0' | ||
|
||
# Using the Default | ||
pod 'box2d' | ||
pod 'cocos2d' | ||
pod 'CCBox2D' , :podspec => 'https://raw.github.com/jdp-global/CCBox2D/master/CCBox2D.podspec' | ||
|
||
|
||
|
||
|
||
|
||
|
||
Goals | ||
============ | ||
create ports of demo sample code across. | ||
Stabilise Pod | ||
|