Dynamic 2d terrain idea.

Started by jtsoi, November 23, 2005, 12:54:11

Previous topic - Next topic

jtsoi

Hi all, great library.

I have a small game idea, and i need destructable 2d terrain, ala Lemmings and Worms. Now, to draw the terrain on screen I will need several 512x512 textures side to side. In order to modify the textures I will render the texture to a custom viewport, and then update the texture, or use Pbuffers. (If I make them to work.)  

But the question now is really, how to get pixel perfect collision with the terrain? Have a greyscale mask? I need to pick individual pixels and update the mask, if collision occured.  What is the best way to do this? glReadPixels? AWT?