I just want to try to create a very simple demo/tutorial on how to create a game with destructible/deformable terrain like the good old lemmings or worms.
The problem is that I have no idea where to start. Are there any physics involved? I's like to write a simple level in plain java 2d. I tried to find some examples, but I couldn't.
Bit of a late reply here.
I asked a very similar question a while back, and got some good answers in the following post:http://www.java-gaming.org/topics/pixel-based-2d-destructible-terrain/28835/msg/263214/view.html
(Come to think of it, I should go back and appreciate a few of the replies, now I know how).
For the lemmings approach, you can use and manipulate an image for the terrain, and hence have pixel-based destructible terrain. Take note of Rorkien's reply about accessing an image's byte array directly; it's more efficient than messing with get/setRGB().
The only physics involved would be checking the terrain around your 'lemming' and deciding whether he should be falling & splatting, or climbing. A worms clone is obviously a different story, as you then have to handle projectiles and explosions.
Hope it gives you a bit of a starting point.