Does Texture --> Vertices mean I can create a Worms/Scorched Earth game?

Topics: User Forum
Apr 28, 2010 at 4:53 PM

I've been interested in creating a Worms (or Scorched Earth) type of game and I read about Farseer having a texture to vertices converter that allows for holes and other deformations.

Does this mean it would be trivial to create deformable 2D terrain?

If so, what classes/methods should I be looking into?

Thanks!

- John

Apr 29, 2010 at 5:41 AM

I wouldn't say it's the texture-to-vertices that makes Farseer capable of creating deformable terrain, but the fact that you can modify geometry on the fly pretty quickly.

Instead of using texture-to-vertices I would use the Boolean tools that come with Farseer (not complete yet) or a Polygon-Boolean library such as GPC or PolyBoolean.

These allow you to add and subtract shapes from each other, so for an explosion you would create a circle shape and subtract it from the terrain. This would work much better with the physics engine than using texture-to-vertices, I think.