Ok guys, not a programming question, but more of a game design question.
I'm trying to make a 2D multiplayer speluking (cave exploring/mining game) game where players can modify the terrain.
Now, if I have only one "layer" within the game, that would be pretty easy. I could just have all of the terrain be 'tiles' that players can mine away leading to basically very linear areas (which is boring).
However, that is not what I want to do -- I want the players to be able to mine or add terrain tiles such that they can modify the foreground or the background terrain to create different terraces on which they can walk.
The problem I have with this is programmatically figuring out where the terrain collisions will be.
It's probably easier to show a picture...
Let's say that you start with the flat terrain on the bottom. Eventually you want to come along and build a small hill and then I dunno.. put a windmill on top. You place four rows of dirt tiles to create a second level that you can stand on while still being able to walk along the bottom level.
On the left side where I have steps, I want there to be collisions such that the player can't be standing on the step and then walk right and fall off the step -- instead he runs into the dirt wall and has to either jump up and to the right, or move left and down. On the other hand, on the far right side, I want the player to be able to walk through without colliding.
Basically, I'm just having a hard time even imagining an algorithm or game mechanic that would allow players to do that without allowing them to create stupid terrain traps that are impossible to get around or lead to other players getting stuck. I'll try to explain better in the future :)