Hi,
I'm trying to make a game similar to the classic Worms (originally a PC game and now on a lot of other platforms)
Here's a sample video of the gameplay for those aren't familiar with it:
| Get the Flash Video |
Essentially there's physics involved, but it's not with smoothly defined SVG-type shapes, but with ragged pixel edges. The floor is initially smooth and solid, but after bombing it / drilling through it / digging it up, it becomes ragged and irregular.
Is there any way to implement a physics engine (Chipmunk or Box2D) that could do pixel-level collision detection as the shapes are really too jagged and irregular to be made by rectangles and circles. I suppose one solution could be to use a large number of 1 or 2 pixel long line-segments, but I was looking for ideas for a more elegant solution.
Going one step further, would it possible to create a physics world/space just be reading and parsing a PNG image?