CloudBomber's Deformable Terrain in cocos2d-x

Official forum for the Chipmunk2D Physics Library.
Post Reply
bojacob
Posts: 1
Joined: Wed Sep 25, 2013 2:45 am
Contact:

CloudBomber's Deformable Terrain in cocos2d-x

Post by bojacob »

I'm working on a game with cocos2d-x. I'm trying to achieve the same effect as CloudBomber, but looking at the code it seems ObjectiveC is used heavily for the sampler.

Is there anything available for C or C++ that I can use as a starting point? If so, I will happily buy a pro license.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: CloudBomber's Deformable Terrain in cocos2d-x

Post by slembcke »

So the CloudBomber demo would be pretty easy to replicate. CloudBomber renders to an offscreen GL render buffer, pulls the pixels using glReadPixels(), and re-marches the entire region. The only real benefit of the Objective-C version is that there is already code that hooks up all of the easy parts for you.

SpacePatrol is a bit different as there is the tile-cache class that helps conservatively re-march small, changed sections of the world instead of the entire world. The tile-cache doesn't have a C implementation yet.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests