First off, I should say thankyou! Over the years I have often browsed JGO for answers to my questions or to fill in time, albeit have never signed up until now.
I'm toying with the idea of creating a lemmings-esque game, with pixel based destructible terrain. I've had a good googling and have some idea about how I will accomplish this. However I'd like to run my thoughts past the JGO community to see if I am on the right track, or if there is a better way.
Essentially I will use a foreground image that forms the terrain (plus a background image). This would likely be accompanied by a byte array holding destructability & collision information for each pixel.
Should pixels be destroyed (by explosions, digging etc.), then I will set the alpha byte of each affected pixel to 0x00 using BufferedImage.setRGB(), followed by updating the byte array, and then render the images.
Does this sound reasonable and efficient? Or would you guys go about this differently?
Thanks very much,