Alright, sorry for the wordy title, but hopefully I can explain myself properly. I'm hoping this is the appropriate forum to post this in; let me beg for forgiveness in advance if it's not.
I have a game concept in my head that I'd like to explore some more and work toward prototyping the game mechanics. One very critical mechanic I'd like to have is destructible terrain. The game's art style would be 2D pixel-art-ish (for a very similar example, think the camera/style of the Worms series), and I'd like the player to be able to use explosives/weapons to break through parts of the world on a per-pixel level.
I didn't do such a good job of explaining that, so I've got a couple pieces of reference to help do the explaining for me.
Tank Wars (DOS):
Worms Series:
(Worms is more relevant; my concept doesn't involve falling terrain like in Tank Wars)Now, I'm no programmer, so I don't really understand how this works on a technical level.
For Worms, I think I have a theory... 2 images; a foreground detail image with an alpha map, and a background image with a generic tiled rockwall or dirt texture. The player/weapon collision is done by the alpha map of the foreground image. When an explosion goes off, it checks to see which pixels were hit by it, and changes the pixels in the alpha map in the foreground image where the explosion goes off to transparent, revealing the background image. Since the alpha has changed, so has the player collision. Maybe?
That description might be a bit of a stretch... but does anyone have any experience with this sort of system? I'm no programmer, but I'd like to at least know where I need to start looking to learn something like this. If a platform/language is helpful to use as example, I'd be looking to do something like this in C# or Flash.
Thanks in advance for any help.